KodeKarsa UI

Basics

Button

A pill for actions. Six variants, five sizes, and a loading state that keeps the button's width.

src/components/ui/button.tsxNo ui-sdk

Variants

Sizes, icons, and loading

Import

tsx
import { Button } from "@/components/ui/button";

Guidelines

  • One main action per area: default or accent. The rest are soft, outline, or ghost.
  • Icon buttons (size="icon") must have an aria-label.
  • Links that look like buttons use buttonVariants() on a Link, not a <button>.