Guaxu Docs
    Preparing search index...

    Interface ButtonProps

    a type with the default props that a button will use

    interface ButtonProps {
        className?: string;
        isDisabled?: boolean;
        onClick?: () => void;
        size?: ButtonSizes;
        slot?: string;
        tier: ButtonTiers;
        type?: "button" | "submit";
        variant: ButtonVariants;
    }
    Index

    Properties

    className?: string

    an aditional css class to be added in the button

    isDisabled?: boolean

    whether the button can be clicked *

    false
    
    onClick?: () => void

    the function that is performed when the button is clicked

    size?: ButtonSizes

    the size of the button

    'md'
    
    slot?: string

    internal use only: this prop is used to integrate with react-aria-components

    tier: ButtonTiers

    hierarchy of the component in the screen

    type?: "button" | "submit"

    The default behavior of the button submit: The button submits the form data to the server. button: The button has no default behavior, and does nothing when pressed by default.

    'button'
    
    variant: ButtonVariants

    the semantic context of the button