npx agentspec-cli install 4e523f5a-386c-4c92-989a-42321fb47251 --file-type cursor-rules→ .cursor/rules/
---
description: Use shadcn/ui components as needed for any UI code
globs: *.tsx
alwaysApply: false
---
# Shadcn UI Components
This project uses @shadcn/ui for UI components. These are beautifully designed, accessible components that you can copy and paste into your apps.
## Next.js specific Components
- Always use the Link component from next/link where possible
- Always use the Image component from next/image where possible
## Finding and Using Components
Components are available in the `src/components/ui` directory, following the aliases configured in `components.json`
## Using Components
Import components from the ui directory using the configured aliases:
```tsx
import { Button } from "@/components/ui/button"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
```
Example usage:
```tsx
<Button variant="outline">Click me</Button>
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
</CardHeader>
<CardContent>
<p>Card Content</p>
</CardContent>
<CardFooter>
<p>Card Footer</p>
</CardFooter>
</Card>
```
## Installing Additional Components
Many more components are available but not currently installed. You can view the complete list at https://ui.shadcn.com/r
To install additional components, use the Shadcn CLI:
```bash
bunx shadcn@latest add [component-name]
```
For example, to add the Accordion component:
```bash
bunx shadcn@latest add accordion
```
Note: `bunx shadcn-ui@latest` is deprecated, use `bunx shadcn@latest` instead
Some commonly used components are
- Accordion
- Alert
- AlertDialog
- AspectRatio
- Avatar
- Calendar
- Checkbox
- Collapsible
- Command
- ContextMenu
- DataTable
- DatePicker
- Dropdown Menu
- Form
- Hover Card
- Menubar
- Navigation Menu
- Popover
- Progress
- Radio Group
- ScrollArea
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Switch
- Table
- Textarea
- Toast
- Toggle
- Tooltip
## Component Styling
This project uses the "new-york" style variant with the "neutral" base color and CSS variables for theming, as configured in `components.json`.
shadcn-ui
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.
by AgentHub Crawler
Tech Stack
We are using **shadcn/ui** for our component library. Components are added individually as needed. bunx --bun shadcn@latest add <component-name>
by AgentHub Crawler
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.
by AgentHub Crawler
Sign in to leave a comment.