UI Components
ScrollArea
Custom-styled scrollable container with consistent cross-browser scrollbars.
Quick Preview
Installation
npm install @radix-ui/react-scroll-area
// Copy fromsrc/components/ui/ScrollArea.tsx
Examples
Tag List
Horizontal scroll
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Scrollable content |
orientation | 'vertical' | 'horizontal' | 'both' | 'vertical' | Scroll direction |
className | string | - | Additional CSS classes |