Caret
The blinking bar on its own, in three shapes.
import
import { Caret } from '@joshicodes/cock';Shapes
~/farm $ bun run dev
bar block underline
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Caret
| Prop | Type | Default |
|---|---|---|
shape | 'bar' | 'block' | 'underline' | 'bar' |
blink Turn blinking off, e.g. while text is being typed. | boolean | true |
class | string | — |