Skip to content

Commit

Permalink
docs: add disabled+active toggleswitch example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Lüders authored and rluders committed Sep 24, 2023
1 parent 2a6c2e5 commit e62e02d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/docs/components/forms/forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ Use the `<ToggleSwitch>` component to ask users to enable or disable an option s
<ToggleSwitch checked={props.switch1} label="Toggle me" onChange={props.setSwitch1} />
<ToggleSwitch checked={props.switch2} label="Toggle me (checked)" onChange={props.setSwitch2} />
<ToggleSwitch checked={false} disabled label="Toggle me (disabled)" onChange={() => undefined} />
<ToggleSwitch checked={true} disabled label="Toggle me (disabled)" onChange={() => undefined} />
<ToggleSwitch checked={props.switch3} onChange={props.setSwitch3} />
</div>
</CodePreview>
Expand Down

0 comments on commit e62e02d

Please sign in to comment.