Skip to content

Label

The Label component is a customizable label for form elements. It shows a required indicator by default, supports an optional tooltip and suffix, and follows consistent styling across the design system.

Playground

Installation

import { Label } from '@harnessio/ui/components'
// ...
return (
<>
<Label htmlFor="username">Username</Label>
<TextInput id="username" type="text" />
</>
)