Real-time Survey Tool Documentation
    Preparing search index...
    • Represents a customizable button component.

      Parameters

      • props: ClassAttributes<HTMLButtonElement> & ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<
            (
                props?: ConfigVariants<{ variant: { default: string; destructive: string; outline: string; secondary: string; ghost: string; link: string; }; size: { default: string; sm: string; lg: string; icon: string; }; }> & ClassProp,
            ) => string,
        > & { asChild?: boolean }

        The properties of the button.

        • className

          Additional CSS classes.

        • variant

          The button's visual style.

        • size

          The button's size.

        • asChild

          If true, renders the child component as a button.

        • className

          Additional CSS classes.

        • variant

          The button's visual style.

        • size

          The button's size.

        • asChild

          If true, renders the child component as a button.

        • className

          Additional CSS classes.

        • variant

          The button's visual style.

        • size

          The button's size.

        • asChild

          If true, renders the child component as a button.

        • OptionalasChild?: boolean

          If true, renders the child component as a button.

      Returns Element

      The rendered button component.