Skip to content

Commit 32e35e2

Browse files
committed
docs(checkbox): add "Helper text" example
1 parent 78089fb commit 32e35e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/pages/components/Checkbox.svx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ Set `disabled` to `true` to prevent user interaction.
3737

3838
<Checkbox labelText="Label text" disabled />
3939

40+
## Helper text
41+
42+
Use `helperText` to provide additional context or instructions below the checkbox.
43+
44+
<Checkbox labelText="Subscribe to newsletter" helperText="You can unsubscribe at any time" />
45+
4046
## Read-only state
4147

4248
Set `readonly` to `true` to make the checkbox non-interactive while keeping the label text readable. Unlike `disabled`, the readonly state is intended for displaying checkbox values that can only be changed programmatically.

0 commit comments

Comments
 (0)