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;
}
PropertyTypeDescription
labelCustom?Label for the input.
niceNamestring?A user friendly name that will be used for the automated validation messages.
resetValuestring?Value that will be used if the form gets soft reset.
iconReactNode?ReactNode that can be used for an icon (or any component)
validationRulesnull | NJFInputValidationRules?The actual validation rules for the field.
classNamestring?Classes used in the wrapper of the component.
inputClassNamestring?Classes used in the actual \ node.
inputWrapperClassNamestring?Classes used for the wrapper of the \ node (which is inside the wrapper of the component.)
extraNodesOutSideArray of ReactNode?Any extra nodes that will be rendered outside the wrapper of the \ node.
extraNodesInsideArray of ReactNode?Any extra nodes that will be rendered inside the wrapper of the \ node.
requiredboolean?Input's required property.