Guaxu Docs
    Preparing search index...

    Type Alias ChecklistProps

    type ChecklistProps = {
        children: (item: ChecklistItemProps) => ReactNode;
        label?: string;
        name?: string;
        onChange: (selectedValues: string[]) => void;
        options: ChecklistItemProps[];
        selectedValues: string[];
    }
    Index

    Properties

    children: (item: ChecklistItemProps) => ReactNode

    A function that returns the content to be rendered for each checklist item

    label?: string

    The title of the checklist

    name?: string

    The name attribute of the checklist group. Useful for form submissions.

    onChange: (selectedValues: string[]) => void

    A callback function that is called when the selected values change

    An array of checklist item props to be rendered in the checklist

    selectedValues: string[]

    An array of values representing the selected checklist items