Leguan UILUv0.1
  • Get Started
  • Landing
  • Inspiration
Actions
  • Button
  • Badge
  • Dropdown Menu
Forms
  • Input
  • Form Controls
Display
  • Card
  • Glow Card
  • Stat Card
  • Empty State
  • Alert
  • Tabs
  • Avatar
  • Skeleton
  • Separator
  • Code
Overlay
  • Dialog
  • Popover
  • Tooltip
Feedback
  • Progress
  • Status Indicator
Charts
  • Area Chart
  • Bar Chart
  • Line Chart
  • Pie Chart
  • Radar Chart
  • Sparkline
Website sections
  • Navbar
  • Hero
  • Features
  • Testimonials
  • Pricing
  • CTA
  • Footer
  • AGENTS.md
  1. Components
  2. Code

Syntax-highlighted blocks with copy, scroll, and file headers.

Preview

primary-action.tsx

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

export function PrimaryAction() {
  return <Button shape="squircle">Get started</Button>
}

Terminal

pnpm dlx shadcn@latest add @leguan/code

Versions

TypeScript

<Code code={code} language="tsx" filename="button.tsx" />

Terminal

<Code code="pnpm dlx shadcn@latest add button" language="bash" filename="Terminal" />

With path

<Code code={source} language="tsx" filepath="src/components/ui/button.tsx" expandable />

Installation

Install by URL

Terminal

pnpm dlx shadcn@latest add https://leguan-ui.pages.dev/r/code.json