Components
Label
API Reference

API Reference

Label component

<Label>Label</Label>

Parameters

props

  • Type: @vtex/shoreline-components.LabelProps & @types/react.React.RefAttributes<typescript.HTMLLabelElement>

Props

asChild (optional)

Enables component composition

  • Type: boolean

  • Default: false

optional (optional)

Whether the input linked to this label is optional

  • Type: boolean

  • Default: false

View source (opens in a new tab)