Skip to content

Commit

Permalink
chore(radix-docs): upd label docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Sep 17, 2024
1 parent e9d4ad4 commit 3371ed5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/radix-docs/src/content/primitives/components/label.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ import { RdxLabelDirective } from '@radix-ng/primitives/label';

Import the component.

```html
<label rdxLabel htmlFor="firstName">First Name</label>
```

## API Reference

### Label
`RdxLabelDirective`
<PropsTable name="RdxLabelDirective" />


## Accessibility
This component is based on the native `label` element, it will automatically apply the correct labelling when wrapping controls
or using the `htmlFor` attribute. For your own custom controls to work correctly,
ensure they use native elements such as `button` or `input` as a base.

0 comments on commit 3371ed5

Please sign in to comment.