Skip to content

Commit

Permalink
fix label documentation example (#3087)
Browse files Browse the repository at this point in the history
* fix label documentation example

* Use class constants

* remove first id

* Label B
  • Loading branch information
mattacus authored and giladgray committed Nov 1, 2018
1 parent f8c0b73 commit be77356
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/core/src/components/forms/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ below, clicking a label focuses its `<input>`.
This component supports the full range of HTML props.

```tsx
<Label
helperText="Helper text with details..."
text="Label A"
>
<input className="@ns-input" id="text-input" placeholder="Placeholder text" />
<Label>
Label A
<input className={Classes.INPUT} placeholder="Placeholder text" />
</Label>

<Label htmlFor="input-b">Label B</Label>
<input className={Classes.INPUT} id="input-b" placeholder="Placeholder text" />
```

@interface ILabelProps
Expand Down

1 comment on commit be77356

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix label documentation example (#3087)

Previews: documentation | landing | table

Please sign in to comment.