---
title: InputLabel
---

import LibraryInfo from '@theme/LibraryInfo'
import { Feedback, TokensTable, PropsTable } from '../../src/components'
import { InputLabel } from '@telus-uds/components-web'
import { InputLabel as BaseDocs } from 'docs/@telus-uds/components-base'
import AvailableOnBoth from '../../partials/_platform-considerations-both.mdx'
import NoStylisticVariants from '../../partials/_variants-none.mdx'

# InputLabel

<LibraryInfo figmaLink="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2F4zJn2Qn6uXOqPP1GVDipy6%2F%25F0%259F%258D%2580-Allium-Components%3Fnode-id%3D451%253A2819" />

```jsx live
<InputLabel
  label="Input label"
  hint="Short hint"
  hintPosition="inline"
  tooltip="This is the tooltip's content"
/>
```

## Introduction

`InputLabel` is typically used as part of an input component, but it can also be used separately,
or in combination with custom form elements.

[Follow the appropriate instructions](importing-components) to add this component in to your app.

### Accessibility

Make sure to pass the `forId` and `hintId` props, and use the `hintId` identifiers for labelling the input (`aria-labelledby`).
The `forId` prop will bind the label to the input, keeping the label inaccessible (avoiding a double screenreader's focus on the same label).

### Platform considerations

<AvailableOnBoth />

:::info
On Native the aria attributes are replaced with the `accessibilityHint` prop.
:::

## Props

<PropsTable base={BaseDocs} />

## Tokens

<TokensTable base={BaseDocs} component="InputLabel" />

## Variants

<NoStylisticVariants />

## Feedback

<Feedback component="InputLabel" />
