caret-shape
ExperimentalDetermines the visual shape of the text cursor. You can choose between the standard vertical bar, a block, or an underscore (terminal-style).
Quick example
.retro-terminal {
/* Changes the cursor to a terminal-style block */
caret-shape: block;
} Quick facts
Initial value
autoInherited
Yes
Applies to
text or elements that accept input
Animation type
byComputedValueType
Values
autobarblockunderscore caret-shape Browser Support
Limited availability 48% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Not ready for production without a fallback.
144+
144+