Skip to content
Frauthy Brand
Frauthy index

Go anywhere.

    No exact contract found. Try a component family, product name, prop, or keyboard key.

    ↑↓ move↵ openesc close

    Button

    primitive

    Primary, secondary, ghost, and danger variants with size presets and loading/disabled states. Polymorphic: renders an anchor whenhref is provided.

    Preview

    Variants
    Sizes
    States
    Link button

    Usage

    import { Button } from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED';
    
    <Button variant="primary" size="md">
      Get started
    </Button>
    
    <Button href="/docs" variant="secondary">
      Read the docs
    </Button>

    Props

    PropTypeDefaultDescription
    variant'primary' | 'secondary' | 'ghost' | 'danger''primary'Visual variant
    size'sm' | 'md' | 'lg''md'Size preset
    hrefstring--Renders as anchor when set
    loadingbooleanfalseShows spinner, disables interaction
    disabledbooleanfalseStandard disabled state
    type'button' | 'submit' | 'reset''button'HTML type attribute
    onClickEventHandler--Click handler
    classstring--Additional CSS classes
    aria-labelstring--Accessible label override

    Accessibility

    Do / Don't

    Do

    Use primary for the single most important action on a page. Use secondary for supporting actions.

    Don't

    Don't stack multiple primary buttons in the same section. Use variant hierarchy to guide focus.