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
Cursor#
A custom cursor component with optional spring animations. It can be globally applied to the page or attached specifically to a parent element.
Examples#
Cursor with image and spring#

Cursor with custom component#

Cursor with image and spring#
Christian Church, Eastern Europe
Installation#
npx shadcn@latest add "https://components.dylanwlim.com/c/cursor.json"
Component API#
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | Children to be rendered within the custom cursor. Mandatory. |
| className | string | Optional CSS class for styling the custom cursor container. | |
| springConfig | SpringOptions | Configuration for the spring physics used in the cursor's movement. | |
| attachToParent | boolean | false | If true, the cursor will only be visible when hovering over its parent component. |
| transition | Transition | Transition settings from motion for animation effects. | |
| variants | Object (with initial, animated, exit properties) | Variants for controlling the animation states with specific properties for initial, animate, and exit states. | |
| onPositionChange | (position: { x: number, y: number }) => void | Callback function that is called when the cursor position changes. |
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