CDP Frontend SDK
    Preparing search index...

    Interface ButtonProps

    The props for the Button component.

    ButtonProps

    interface ButtonProps {
        pendingLabel?: ReactNode;
        variant?: ButtonVariant;
        asChild?: boolean;
        fullWidth?: boolean;
        isPending?: boolean;
        size?: ButtonSize;
    }

    Hierarchy (View Summary)

    Index

    Properties

    pendingLabel?: ReactNode

    The label to display when the button is pending.

    variant?: ButtonVariant

    The variant of the button. Defaults to "primary".

    asChild?: boolean

    Set to true to use a custom element or component in place of the default button element.

    fullWidth?: boolean

    Whether the button should be full width.

    isPending?: boolean

    Whether the button state is pending.

    size?: ButtonSize

    The size of the button. Defaults to "md".