A label for inputs.
Deprecated Component
This component is deprecated and will not be audited or maintained moving forward.
We recommend exploring alternative solutions in Mosaic, where you can find supported components and updated guidance.
If no suitable alternative exists or you need support defining the right approach, please contact the Design System team by submitting a request through our form.
<tk-label>Label</tk-label>
<hr>
<tk-input label-text="Labelled Input"></tk-input>
<hr>
<tk-text-area label-text="Labelled Text Area"></tk-text-area>tk-label is used to label inputs. They can be used alone or in conjunction with an input (e.g. with a tk-input)
<tk-input label-text="Medium Label" label-size="medium"></tk-input>
<hr/>
<tk-input label-text="Large Label" label-size="large"></tk-input>The size of the label can be specified by the size prop.
<tk-input disabled label-text="Disabled Medium Label" label-size="medium"></tk-input>
<hr/>
<tk-input disabled label-text="Disabled Large Label" label-size="large"></tk-input>Changing the disabled prop to true shows that it’s input cannot be used.
| Property | Required? | Default | Description |
|---|---|---|---|
size | no | medium | The size of the label, can either be medium, or large |
disabled | no | false | If the label is disabled, it shows that it’s input cannot be used |