UNPKG

@tiller-ds/formik-elements

Version:

Formik elements module of Tiller Design System

20 lines (19 loc) 778 B
/// <reference types="react" /> import { CheckboxProps } from "@tiller-ds/form-elements"; import { ComponentTokens } from "@tiller-ds/theme"; export declare type CheckboxFieldProps = { /** * Custom additional class name for the checkbox field container. */ containerClassName?: string; /** * The accessor value for the input field component (for validation, fetching, etc.). */ name: string; } & CheckboxProps & CheckboxFieldTokensProps; declare type CheckboxFieldTokensProps = { checkboxFieldTokens?: ComponentTokens<"CheckboxField">; checkboxTokens?: ComponentTokens<"Checkbox">; }; export default function CheckboxField({ name, label, containerClassName, ...props }: CheckboxFieldProps): JSX.Element; export {};