Skip to main content

Installation

Preview

Usage

import { Button } from '@/components/ui/button'
Displays a button or a component that looks like a button.

Examples

Default

Outline

Usage notes

Primary actions. Use variant=outline for secondary actions, variant=ghost for tertiary.

Composition

DialogFooter, CardFooter

Avoid

  • Do not use raw bg-blue-500
  • Do not nest buttons inside buttons