For the complete documentation index, see llms.txt. Markdown variants are available at explicit .md URLs. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0

Button

Displays a button or a component that looks like a button.

import { ArrowUpIcon } from "lucide-react";

import { Button } from "@/components/ui/button";
A button with a secondary icon action.

Installation

$ pnpm dlx shadcn@latest add https://tanstartercn.tsu.moe/r/button.json

Usage

import { Button } from "@/components/ui/button";
<Button variant="outline">Button</Button>

Examples

Start aligned

import { ArrowUpIcon } from "lucide-react";

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

Hidden code

Use hideCode for demos where the preview is the documentation.

Inline example

inline-button-example.tsx
import { Button } from "@/components/ui/button";

export function InlineButtonExample() {