Skip to content

Select

A flexible dropdown component built on Radix UI Select primitive. Supports icons, multiple variants, and seamless form integration.

Installation

Add Select to your project with the CK-UI CLI. It copies the source into your project, so the code is yours to change.

Terminal
npx ck-ui-cli@latest add select
Adds
Select.tsxField.tsxLabel.tsxThemeScope.tsxto your CK-UI folder (src/components/ck-ui by default)
Installs
@radix-ui/react-label@radix-ui/react-select@radix-ui/react-slotclass-variance-authorityreact-iconsif your project does not have them yet

First time with CK-UI in this project? Run npx ck-ui-cli@latest init once before adding components. The installation guide explains what it sets up.

Manual installationInstall the packages and copy the files yourself.

Install the following dependencies

Run these commands in your terminal to install the required packages

Terminal
npm install @radix-ui/react-select class-variance-authority react-icons @radix-ui/react-slot @radix-ui/react-label

Add the ThemeScope component

Select imports ./ThemeScope, so add this file next to it

/components/ui/ThemeScope.tsx
"use client";

import * as React from "react";
import { cn } from "@/lib/utils";

/*
 * A local light/dark boundary. Everything inside renders in `theme`, whatever the site theme is: the semantic tokens
 * (`bg-background`, `text-foreground`, …) and every `dark:` utility resolve to the nearest boundary, not to <html>.
 * Overlays that portal out of the tree (Select, Popover, Tooltip, Dropdown, Modal, AlertDialog, Drawer, Toast) render
 * into a layer that carries the same theme, so a menu opened inside a dark scope is dark too.
 *
 * It never touches <html>, the site's theme state or its storage. Without `theme` it renders no theme class and
 * follows the surrounding theme. Nest at most one scope below the site theme (see `darkMode` in tailwind.config.ts).
 */

export type ScopeTheme = "light" | "dark";

const PortalContainerContext = React.createContext<HTMLElement | null>(null);

/** Where overlays portal to: the nearest themed ThemeScope's layer, or null for the default (document.body). */
export function usePortalContainer() {
    return React.useContext(PortalContainerContext);
}

// A themed layer at the end of <body> for portalled overlays. Only created while the scope sets a theme, so a scope
// that follows the site leaves the document exactly as it was.
function usePortalLayer(theme: ScopeTheme | undefined) {
    const [layer, setLayer] = React.useState<HTMLElement | null>(null);
    const themed = theme !== undefined;

    React.useEffect(() => {
        if (!themed) return;
        const element = document.createElement("div");
        element.setAttribute("data-theme-scope-layer", "");
        document.body.appendChild(element);
        setLayer(element);
        return () => {
            element.remove();
            setLayer(null);
        };
    }, [themed]);

    React.useEffect(() => {
        if (!layer || !theme) return;
        // text-foreground: portalled text that sets no colour of its own resolves against the layer's tokens.
        layer.className = `${theme} text-foreground`;
    }, [layer, theme]);

    return layer;
}

export interface RootProps extends React.HTMLAttributes<HTMLDivElement> {
    /** Theme for this subtree. Leave undefined to follow the surrounding (site) theme. */
    theme?: ScopeTheme;
}

const Root = React.forwardRef<HTMLDivElement, RootProps>(({ theme, className, children, ...props }, ref) => {
    const layer = usePortalLayer(theme);
    // A scope that follows its surroundings keeps the surrounding scope's layer.
    const outerLayer = usePortalContainer();

    return (
        <div ref={ref} data-theme-scope={theme} className={cn(theme && [theme, "text-foreground"], className)} {...props}>
            <PortalContainerContext.Provider value={theme ? layer : outerLayer}>{children}</PortalContainerContext.Provider>
        </div>
    );
});
Root.displayName = "ThemeScope.Root";

export { Root };

Add the Field component

Select imports ./Field, so add this file next to it

/components/ui/Field.tsx
"use client";

import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@/lib/utils";
import * as Label from "./Label";

/*
 * Field wires a label, description and message to one form control:
 *   Field.Label        → <label for={controlId}>
 *   Field.Description  → referenced by aria-describedby
 *   Field.Message      → referenced by aria-describedby (error text when invalid)
 *   invalid / required / disabled → aria-invalid, required/aria-required, disabled on the control
 * Controls (Input, Textarea, Select, Checkbox, Switch, Radio) read the context through
 * useFieldControlProps. It is plain React state: it works with native forms and form libraries.
 */

type FieldContextValue = {
    controlId: string;
    labelId: string;
    descriptionId: string;
    messageId: string;
    invalid: boolean;
    required: boolean;
    disabled: boolean;
    hasDescription: boolean;
    hasMessage: boolean;
    setHasDescription: (value: boolean) => void;
    setHasMessage: (value: boolean) => void;
};

const FieldContext = React.createContext<FieldContextValue | null>(null);

export function useField() {
    return React.useContext(FieldContext);
}

/**
 * Provided by Fieldset.Root. A native <fieldset disabled> already disables the controls inside it;
 * this lets each Field.Root reflect that state (label styling, `disabled` on the control).
 */
export const FieldsetContext = React.createContext<{ disabled: boolean } | null>(null);

export interface FieldRootProps extends React.HTMLAttributes<HTMLDivElement> {
    /** Id for the control; generated when omitted. */
    id?: string;
    invalid?: boolean;
    required?: boolean;
    disabled?: boolean;
}

const Root = React.forwardRef<HTMLDivElement, FieldRootProps>(({ id, invalid = false, required = false, disabled: disabledProp = false, className, children, ...props }, ref) => {
    const fieldset = React.useContext(FieldsetContext);
    const disabled = disabledProp || Boolean(fieldset?.disabled);
    const generatedId = React.useId();
    const controlId = id ?? `field-${generatedId}`;
    const [hasDescription, setHasDescription] = React.useState(false);
    const [hasMessage, setHasMessage] = React.useState(false);

    const value = React.useMemo<FieldContextValue>(
        () => ({
            controlId,
            labelId: `${controlId}-label`,
            descriptionId: `${controlId}-description`,
            messageId: `${controlId}-message`,
            invalid,
            required,
            disabled,
            hasDescription,
            hasMessage,
            setHasDescription,
            setHasMessage,
        }),
        [controlId, invalid, required, disabled, hasDescription, hasMessage]
    );

    return (
        <FieldContext.Provider value={value}>
            <div
                ref={ref}
                className={cn("flex flex-col gap-1.5", className)}
                data-invalid={invalid || undefined}
                data-disabled={disabled || undefined}
                {...props}
            >
                {children}
            </div>
        </FieldContext.Provider>
    );
});
Root.displayName = "Field.Root";

type FieldLabelProps = React.ComponentPropsWithoutRef<typeof Label.Root>;

const FieldLabel = React.forwardRef<React.ElementRef<typeof Label.Root>, FieldLabelProps>(({ children, ...props }, ref) => {
    const field = useField();

    return (
        <Label.Root ref={ref} id={field?.labelId} htmlFor={field?.controlId} disabled={field?.disabled} {...props}>
            {children}
            {field?.required && <Label.Asterisk />}
        </Label.Root>
    );
});
FieldLabel.displayName = "Field.Label";

const Description = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(({ className, ...props }, ref) => {
    const field = useField();
    const setHasDescription = field?.setHasDescription;

    React.useEffect(() => {
        if (!setHasDescription) return;
        setHasDescription(true);
        return () => setHasDescription(false);
    }, [setHasDescription]);

    return <p ref={ref} id={field?.descriptionId} className={cn("size-p-xs text-muted-foreground", className)} {...props} />;
});
Description.displayName = "Field.Description";

export interface FieldMessageProps extends React.HTMLAttributes<HTMLParagraphElement> {
    /** Only render while the field is invalid (default true). */
    showWhenValid?: boolean;
}

const Message = React.forwardRef<HTMLParagraphElement, FieldMessageProps>(({ className, showWhenValid = false, children, ...props }, ref) => {
    const field = useField();
    const visible = Boolean(children) && (showWhenValid || !field || field.invalid);
    const setHasMessage = field?.setHasMessage;

    React.useEffect(() => {
        if (!setHasMessage || !visible) return;
        setHasMessage(true);
        return () => setHasMessage(false);
    }, [setHasMessage, visible]);

    if (!visible) return null;

    return (
        <p
            ref={ref}
            id={field?.messageId}
            aria-live="polite"
            className={cn("size-p-xs", field?.invalid ? "text-destructive-strong" : "text-muted-foreground", className)}
            {...props}
        >
            {children}
        </p>
    );
});
Message.displayName = "Field.Message";

type ControlAttributes = {
    id?: string;
    "aria-describedby"?: string;
    "aria-invalid"?: React.AriaAttributes["aria-invalid"];
    "aria-required"?: React.AriaAttributes["aria-required"];
    required?: boolean;
    disabled?: boolean;
};

/**
 * Merges Field context into a control's props. Explicit props win; describedby ids are combined.
 */
export function useFieldControlProps<P extends ControlAttributes>(props: P, options: { invalid?: boolean } = {}): P & ControlAttributes {
    const field = useField();
    const invalid = Boolean(options.invalid || field?.invalid || props["aria-invalid"] === true || props["aria-invalid"] === "true");

    const describedBy = [props["aria-describedby"], field?.hasDescription ? field.descriptionId : undefined, field?.hasMessage ? field.messageId : undefined]
        .filter(Boolean)
        .join(" ");

    return {
        ...props,
        id: props.id ?? field?.controlId,
        "aria-describedby": describedBy || undefined,
        "aria-invalid": invalid || undefined,
        required: props.required ?? (field?.required || undefined),
        disabled: props.disabled ?? (field?.disabled || undefined),
    };
}

/** Applies Field wiring to any custom control element (single child). */
const Control = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement> & ControlAttributes>((props, ref) => {
    const controlProps = useFieldControlProps(props);
    return <Slot ref={ref} {...controlProps} />;
});
Control.displayName = "Field.Control";

export { Root, FieldLabel as Label, Description, Message, Control };

Add the Label component

Select imports ./Label, so add this file next to it

/components/ui/Label.tsx
"use client";

import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cn } from "@/lib/utils";

export interface LabelRootProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
    /** Dims the label. The control itself must also be disabled. */
    disabled?: boolean;
}

const Root = React.forwardRef<React.ElementRef<typeof LabelPrimitive.Root>, LabelRootProps>(({ className, disabled, ...props }, ref) => {
    return (
        <LabelPrimitive.Root
            ref={ref}
            data-disabled={disabled || undefined}
            className={cn(
                "group flex cursor-pointer items-center gap-px size-p-sm text-foreground",
                "data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/60",
                className
            )}
            {...props}
        />
    );
});
Root.displayName = "Label.Root";

// Visual required marker. Screen readers get "required" from the control (required / aria-required).
const Asterisk = React.forwardRef<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement>>(({ className, children, ...props }, ref) => (
    <span ref={ref} aria-hidden="true" className={cn("text-primary-strong group-data-[disabled]:text-muted-foreground/60", className)} {...props}>
        {children || "*"}
    </span>
));
Asterisk.displayName = "Label.Asterisk";

const Sub = React.forwardRef<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement>>(({ className, ...props }, ref) => (
    <span ref={ref} className={cn("size-p-xs text-muted-foreground group-data-[disabled]:text-muted-foreground/60", className)} {...props} />
));
Sub.displayName = "Label.Sub";

export { Root, Asterisk, Sub };

Create or update your Select component

Copy this code to create your Select component

/components/ui/Select.tsx
"use client";

import * as React from "react";
import * as SelectPrimitive from "@radix-ui/react-select";
import { cva } from "class-variance-authority";
import { RiArrowDownSLine, RiCheckLine } from "react-icons/ri";
import { cn } from "@/lib/utils";
import { useField, useFieldControlProps } from "./Field";
import { usePortalContainer } from "./ThemeScope";

type SelectVariant = "default" | "compact" | "compactForInput" | "inline";
type SelectSize = "sm" | "md" | "lg";

type SelectContextValue = {
    variant: SelectVariant;
    size: SelectSize;
    className?: string;
    required: boolean;
    leadingIcon?: React.ElementType;
    setLeadingIcon: (icon: React.ElementType | undefined) => void;
};

const SelectContext = React.createContext<SelectContextValue>({
    variant: "default",
    size: "md",
    required: false,
    setLeadingIcon: () => {},
});

const iconSizes = cva("shrink-0 text-muted-foreground", {
    variants: { size: { sm: "size-4", md: "size-5", lg: "size-6" } },
    defaultVariants: { size: "md" },
});

const triggerBase = [
    "group relative flex items-center justify-between overflow-hidden size-p-sm text-foreground transition duration-base ease-standard",
    "data-[placeholder]:text-muted-foreground",
    "disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground",
];

const triggerVariants: Record<SelectVariant, string> = {
    // Bordered triggers are fields: strong border plus a soft halo on focus (field-focus).
    default: "w-full rounded-lg border field-focus",
    compact: "w-fit min-w-12 rounded-lg border field-focus",
    inline: "h-5 min-h-5 w-fit min-w-16 gap-1 border-none bg-transparent p-0 pl-3 pr-2 text-muted-foreground hover:text-foreground data-[state=open]:text-foreground focus-ring rounded",
    compactForInput: "h-full w-fit min-w-fit gap-1 rounded-none border-l border-input pl-3 pr-2 hover:bg-muted focus-ring-inset",
};

const triggerSizes: Record<SelectSize, string> = {
    sm: "h-8 gap-0.5 pl-2.5 pr-1.5",
    md: "h-9 gap-1 pl-3 pr-2",
    lg: "h-10 gap-1 rounded-10 pl-3 pr-2.5",
};

export type SelectRootProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> & {
    variant?: SelectVariant;
    size?: SelectSize;
    /** Applied to the trigger. */
    className?: string;
};

function Root({ variant = "default", size = "md", className, children, required, disabled, ...props }: SelectRootProps) {
    const field = useField();
    const [leadingIcon, setLeadingIconState] = React.useState<React.ElementType | undefined>(undefined);
    const setLeadingIcon = React.useCallback((icon: React.ElementType | undefined) => setLeadingIconState(() => icon), []);
    const isRequired = Boolean(required ?? field?.required);

    return (
        <SelectContext.Provider value={{ variant, size, className, required: isRequired, leadingIcon, setLeadingIcon }}>
            <SelectPrimitive.Root required={isRequired || undefined} disabled={disabled ?? (field?.disabled || undefined)} {...props}>
                {children}
            </SelectPrimitive.Root>
        </SelectContext.Provider>
    );
}
Root.displayName = "Select.Root";

const Group = SelectPrimitive.Group;

const Value = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Value>, React.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>>((props, ref) => (
    <SelectPrimitive.Value ref={ref} {...props} />
));
Value.displayName = "Select.Value";

/** Declares a leading icon for the trigger: <Select.Icon as={RiGlobalLine} /> inside Select.Root. */
function Icon({ as }: { as: React.ElementType }) {
    const { setLeadingIcon } = React.useContext(SelectContext);

    React.useEffect(() => {
        setLeadingIcon(as);
        return () => setLeadingIcon(undefined);
    }, [as, setLeadingIcon]);

    return null;
}
Icon.displayName = "Select.Icon";

export type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & {
    /** Error state. Also taken from Field.Root. */
    invalid?: boolean;
    /** @deprecated Use `invalid`. */
    error?: boolean;
};

const Trigger = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Trigger>, SelectTriggerProps>(({ className, children, invalid, error, ...props }, ref) => {
    const { variant, size, className: rootClassName, required, leadingIcon: LeadingIcon } = React.useContext(SelectContext);
    // Field required/disabled are applied on Select.Root (Radix); the trigger gets ids and ARIA state.
    // An explicit `disabled` on the trigger is still honoured.
    const controlProps = { ...useFieldControlProps(props, { invalid: invalid ?? error }), required: undefined, disabled: props.disabled };
    const isInvalid = Boolean(controlProps["aria-invalid"]);
    const bordered = variant === "default" || variant === "compact";

    return (
        <SelectPrimitive.Trigger
            ref={ref}
            aria-required={required || undefined}
            className={cn(
                triggerBase,
                triggerVariants[variant],
                bordered && triggerSizes[size],
                bordered &&
                    (isInvalid
                        ? "border-destructive outline-destructive/25 hover:bg-destructive-subtle data-[state=open]:border-destructive"
                        : "border-input outline-accent hover:bg-muted data-[state=open]:border-foreground focus:border-foreground"),
                bordered && "disabled:border-transparent disabled:bg-muted",
                rootClassName,
                className
            )}
            {...controlProps}
        >
            <span className="flex min-w-0 items-center gap-2">
                {LeadingIcon && <LeadingIcon aria-hidden="true" className={iconSizes({ size })} />}
                {children}
            </span>
            <SelectPrimitive.Icon asChild>
                <RiArrowDownSLine aria-hidden="true" className="ml-0.5 size-5 shrink-0 text-muted-foreground transition-transform duration-slow group-data-[state=open]:rotate-180" />
            </SelectPrimitive.Icon>
        </SelectPrimitive.Trigger>
    );
});
Trigger.displayName = "Select.Trigger";

const contentWidths: Record<SelectVariant, string> = {
    default: "min-w-[8rem] max-w-full",
    compact: "inline-flex w-fit min-w-20",
    inline: "",
    compactForInput: "inline-flex w-fit min-w-20",
};

const Content = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Content>, React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>>(
    ({ className, children, position = "popper", ...props }, ref) => {
        const { variant } = React.useContext(SelectContext);
        const container = usePortalContainer();

        return (
            <SelectPrimitive.Portal container={container}>
                <SelectPrimitive.Content
                    ref={ref}
                    position={position}
                    side="bottom"
                    sideOffset={8}
                    collisionPadding={8}
                    className={cn(
                        "relative z-popover overflow-hidden rounded-2xl border border-border bg-surface text-surface-foreground shadow-medium",
                        "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
                        "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
                        contentWidths[variant],
                        className
                    )}
                    {...props}
                >
                    <SelectPrimitive.Viewport
                        className={cn("scroll-py-2 overflow-auto p-2", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")}
                    >
                        {children}
                    </SelectPrimitive.Viewport>
                </SelectPrimitive.Content>
            </SelectPrimitive.Portal>
        );
    }
);
Content.displayName = "Select.Content";

export type SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {
    /** Icon shown before the label (also mirrored in the trigger through Select.Value). */
    icon?: React.ElementType;
};

const Item = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Item>, SelectItemProps>(({ className, children, icon: ItemIcon, ...props }, ref) => {
    const { size } = React.useContext(SelectContext);

    return (
        <SelectPrimitive.Item
            ref={ref}
            className={cn(
                "relative flex w-full cursor-pointer select-none items-center rounded-lg p-2 pr-8 size-p-sm text-foreground outline-none transition-colors duration-base",
                // Keyboard focus also shows the inset focus ring: the highlight colour alone is too faint (1.1:1).
                "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground focus-ring-inset data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
                size === "sm" && "gap-1.5",
                className
            )}
            {...props}
        >
            <SelectPrimitive.ItemText>
                <span className="flex items-center gap-2">
                    {ItemIcon && <ItemIcon aria-hidden="true" className={iconSizes({ size })} />}
                    {typeof children === "string" ? <span className="truncate">{children}</span> : children}
                </span>
            </SelectPrimitive.ItemText>
            <SelectPrimitive.ItemIndicator className="absolute right-2 flex size-4 items-center justify-center">
                <RiCheckLine aria-hidden="true" className="size-4 text-muted-foreground" />
            </SelectPrimitive.ItemIndicator>
        </SelectPrimitive.Item>
    );
});
Item.displayName = "Select.Item";

const Label = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Label>, React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>>(({ className, ...props }, ref) => (
    <SelectPrimitive.Label ref={ref} className={cn("px-2 py-1.5 size-subheading-xs uppercase text-muted-foreground", className)} {...props} />
));
Label.displayName = "Select.Label";

const Separator = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Separator>, React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>>(
    ({ className, ...props }, ref) => <SelectPrimitive.Separator ref={ref} className={cn("-mx-2 my-1 h-px bg-border", className)} {...props} />
);
Separator.displayName = "Select.Separator";

const Select = {
    Root,
    Group,
    Value,
    Trigger,
    Content,
    Item,
    Icon,
    Label,
    Separator,
};

export { Root, Group, Value, Trigger, Content, Item, Icon, Label, Separator };
export default Select;

Test Your Component

  • 1. Add the component to a test page
  • 2. Check all props and variants work as expected
  • 3. Verify responsive behavior
  • 4. Test with different content/data
  • 5. Ensure accessibility features work correctly

With Label

Select component can be paired with a label for better accessibility.

With Icon

Select items can include icons to enhance visual recognition.

Sizes

Select components come in different sizes to fit various UI contexts.

Error State

Select components can display an error state to indicate validation issues.

Disabled State

Select components and individual items can be disabled to prevent user interaction.

Compact

A more compact variant of the select component for space-constrained interfaces.

Inline

An inline variant of the select component that can be embedded within text content.

With Input

Select components can be combined with input fields for complex form controls.

API Reference

The Select component is built on top of the Radix UI Select primitive and extends its functionality with additional styling options and features.

Select.Root

Contains all the parts of a select.

See Radix UI docs for base props.

PropTypeDefaultDescription
variant
"default""compact""compactForInput""inline"
"default"

The visual style variant of the select.

size
"sm""md""lg"
"md"

Controls the size of the select component.

defaultValue"string""undefined"

The value of the select item that should be selected when initially rendered.

value"string""undefined"

The controlled value of the select item to select.

onValueChange"function""undefined"

Event handler called when the value changes.

disabled"boolean""false"

When true, prevents the user from interacting with the select.

Select.Trigger

The button that toggles the select. The Select.Value will be rendered inside the trigger.

See Radix UI docs for base props.

PropTypeDefaultDescription
invalid"boolean""false"

Error styling and aria-invalid on the trigger. Also set automatically inside Field.Root invalid. (The old error prop still works but is deprecated.)

className"string""undefined"

Additional CSS classes to apply to the select trigger.

Select.Content

The component that pops out when the select is open.

See Radix UI docs for base props.

PropTypeDefaultDescription
position
"popper""item-aligned"
"popper"

The positioning strategy to use.

side
"top""right""bottom""left"
"bottom"

The preferred side of the trigger to render against when open.

sideOffset"number""8"

The distance in pixels from the trigger.

className"string""undefined"

Additional CSS classes to apply to the select content.

Select.Item

The component that contains a select item.

See Radix UI docs for base props.

PropTypeDefaultDescription
icon"React.ElementType""undefined"

Icon shown before the item label; mirrored in the trigger by Select.Value. Use <Select.Icon as={...} /> inside Select.Root for a fixed leading icon in the trigger.

value"string""undefined"

The unique value of the item.

disabled"boolean""false"

When true, prevents the user from interacting with the item.

className"string""undefined"

Additional CSS classes to apply to the select item.

Used in these blocks

Block families with at least one block built on this component. Each page previews its blocks and lists the components and packages they use.