Skip to content
Effects

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

PropTypeDefault
shape
'bar' | 'block' | 'underline''bar'
blink

Turn blinking off, e.g. while text is being typed.

booleantrue
class
string—

See also

cock. Yes, it stands for core component kit. We checked twice.