Button

This is a Button component

API Reference

variants

Type

{ primary: { backgroundColor: string; color: string; }; secondary: { backgroundColor: string; color: string; }; }

ButtonProps

Properties

PropertyTypeModifiers
children?ReactNode—
backgroundColor?string—
color?string—
variant"primary" | "secondary"—
style?CSSProperties—

Button

Allow users to take specific actions.

Properties

Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof ButtonProps> & ButtonProps & { css?: CSSObject; className?: string; }

Returns

React.JSX.Element

Examples

  • BasicUsage

    Primary/secondary buttons with a practical click counter.

    Count: 0