platform-bible-react
    Preparing search index...

    Function CommandItem

    • Command menu for React. These components are built on cmdk and styled with Shadcn UI.

      Parameters

      • __namedParameters: Children & Omit<
            Pick<
                Pick<
                    DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
                    "key" | (keyof HTMLAttributes<HTMLDivElement>),
                > & { ref?: Ref<HTMLDivElement> } & { asChild?: boolean },
                "key" | (keyof HTMLAttributes<HTMLDivElement>) | "asChild",
            >,
            "value" | "disabled" | "onSelect",
        > & {
            disabled?: boolean;
            forceMount?: boolean;
            keywords?: string[];
            onSelect?: (value: string) => void;
            value?: string;
        } & RefAttributes<HTMLDivElement>
        • Optionaldisabled?: boolean

          Whether this item is currently disabled.

        • OptionalforceMount?: boolean

          Whether this item is forcibly rendered regardless of filtering.

        • Optionalkeywords?: string[]

          Optional keywords to match against when filtering.

        • OptionalonSelect?: (value: string) => void

          Event handler for when this item is selected, either via click or keyboard selection.

        • Optionalvalue?: string

          A unique value for this item. If no value is provided, it will be inferred from children or the rendered textContent. If your textContent changes between renders, you must provide a stable, unique value.

      Returns Element