This component has been deprecated. Please use assistant-ui instead.

interface ButtonListItemProps {
    disabled?: boolean;
    icon?: string;
    onClick?: MouseEventHandler<Element>;
    text?: ReactNode;
    value?: string;
    variant?:
        | "primary"
        | "secondary"
        | "danger"
        | "minimal";
}

Properties

disabled?: boolean

If true, the button will not be clickable

icon?: string

An icon shown next to the text

onClick?: MouseEventHandler<Element>

Triggered on click. You may want to use onClickButton and value instead

text?: ReactNode

The text of the button

value?: string

When this button has been clicked, this is the value sent from ButtonList's click handler

variant?:
    | "primary"
    | "secondary"
    | "danger"
    | "minimal"

The variant of the button. Defaults to 'primary'