tezosx-ui

v1.0.0

Button

A customizable button component with multiple variants and sizes. Built for consistency across Tezos marketing experiences.

Installation

Install the button component using the shadcn CLI:

npx shadcn@latest add https://tezosx-ui.vercel.app/registry/tezosx/button.json

Variants

Primary

Main call-to-action buttons for primary actions.

<Button variant="primary">Primary Button</Button>

Secondary

For secondary actions that are less prominent.

<Button variant="secondary">Secondary Button</Button>

Outline

Outlined style for tertiary actions.

<Button variant="outline">Outline Button</Button>

Ghost

Minimal style for subtle actions.

<Button variant="ghost">Ghost Button</Button>

Destructive

For dangerous or destructive actions like delete.

<Button variant="destructive">Delete</Button>

Sizes

Buttons come in four sizes: small, medium (default), large, and icon.

<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>
<Button size="icon"><Icon /></Button>

Props

PropTypeDefaultDescription
variantstring"primary"Button style: primary, secondary, outline, ghost, destructive
sizestring"md"Button size: sm, md, lg, icon
asChildbooleanfalseMerge props with child element instead of rendering button
disabledbooleanfalseDisable the button

Real-World Examples

Form Actions

Danger Zone

Navigation