Core Components
Number Effects
Interactive Elements
Advanced Effects
Radix UI Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Base UI Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Text Roll#
A text roll component that rotates each character, fully customizable for nice text animations.
Examples#
Text Roll basic#
cccooommmpppooonnneeennntttssscomponents
Text Roll custom variants#
cccooommmpppooonnneeennntttssscomponents
Text Roll custom transition delay#
cccooommmpppooonnneeennntttssscomponents
Installation#
npx shadcn@latest add "https://components.dylanwlim.com/c/text-roll.json"
Component API#
Text Roll#
| Prop | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | The text to roll. |
| className | string | - | The class name to apply to the component. |
| duration | number | 0.5 | The duration of the animation. |
| getEnterDelay | (i: number) => number | (i) => i * 0.1 | The delay of the animation for each character. |
| getExitDelay | (i: number) => number | (i) => i * 0.1 + 0.2 | The delay of the animation for each character. |
| transition | Transition | { ease: 'easeIn' } | The transition of the animation. |
| variants | Object | - | The variants of the animation. |
| onAnimationComplete | () => void | - | The callback function to call when the animation is complete. |
Build with DWL Components
Use the copied registry, charts, blocks, and create tools in one place.
Start from the DWL Components create flow and customize from there.
Open DWL Components Create