Skip to content

Caption

The Caption component renders supplementary text below a form input — a short hint, a format requirement, or an error message that gives the field a little more context.

Variations

Caption passes className straight through, so you can recolor it to signal state — for example, a danger color for an error hint.

Installation

import { Caption } from '@harnessio/ui/components'
return (
<Caption>Use lowercase letters and hyphens only.</Caption>
)