NJFCheckBoxProps
export interface NJFCheckBoxProps {
label?: {
text?: string;
className?: string;
};
niceName?: string;
resetValue?: string;
icon?: ReactNode;
validationRules?: null | NJFCheckBoxValidationRules;
className?: string;
inputClassName?: string;
inputWrapperClassName?: string;
extraNodesOutSide?: ReactNode[];
extraNodesInside?: ReactNode[];
required?: boolean;
}
Property | Type | Description |
---|---|---|
label | Custom? | Label for the input. |
niceName | string? | A user friendly name that will be used for the automated validation messages. |
resetValue | string? | Value that will be used if the form gets soft reset. |
icon | ReactNode? | ReactNode that can be used for an icon (or any component) |
validationRules | null | NJFInputValidationRules? | The actual validation rules for the field. |
className | string? | Classes used in the wrapper of the component. |
inputClassName | string? | Classes used in the actual \ node. |
inputWrapperClassName | string? | Classes used for the wrapper of the \ node (which is inside the wrapper of the component.) |
extraNodesOutSide | Array of ReactNode? | Any extra nodes that will be rendered outside the wrapper of the \ node. |
extraNodesInside | Array of ReactNode? | Any extra nodes that will be rendered inside the wrapper of the \ node. |
required | boolean? | Input's required property. |