Skip to content

Commit

Permalink
docs(sbb-time-input): add size docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Aug 23, 2024
1 parent 8cb4473 commit 480f3e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/elements/time-input/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ which accepts the id of the native input, or directly its reference.

## In `sbb-form-field`

If the `sbb-time-input` is used within a `sbb-form-field` with a native input, they are automatically linked.
If the `sbb-time-input` is used within a `sbb-form-field`:

- It links to the native input automatically.
- It adapts to the form-field `size`.

```html
<sbb-form-field width="collapse">
<sbb-form-field width="collapse" size="s">
<input value="13:30" />
<sbb-time-input></sbb-time-input>
</sbb-form-field>
Expand Down

0 comments on commit 480f3e9

Please sign in to comment.