headless component

A component that provides behaviour, state and accessibility but no styling, leaving the look entirely to the consumer.

In more detail

A headless disclosure, for example, tracks open or closed, returns the right aria-expanded and aria-controls attributes and handles keys, but renders no CSS. Teams style it with their own tokens without fighting library styles. Radix UI, React Aria and Zag are well-known headless libraries.

Related terms

Taught in

References