Button

This is a Button component

API Reference

variants

Type

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

ButtonProps

Properties

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

Button

Allow users to take specific actions.

Properties

props: Props & { css?: CSSObject; className?: string; }

Examples

  • BasicUsage

    Primary/secondary buttons with a practical click counter.

    Count: 0