Skip to content

Commit

Permalink
Fixing the initial values on doc (#1785)
Browse files Browse the repository at this point in the history
This commit replaces the string-based 'value' prop with an array in the documentation example related to multiple selection in Shoelace's React components.
  • Loading branch information
YassSSH authored Jan 23, 2024
1 parent 7732558 commit caf4706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ import SlOption from '@shoelace-style/shoelace/dist/react/option';
import SlSelect from '@shoelace-style/shoelace/dist/react/select';
const App = () => (
<SlSelect label="Select a Few" value="option-1 option-2 option-3" multiple clearable>
<SlSelect label="Select a Few" value={["option-1", "option-2", "option-3"]} multiple clearable>
<SlOption value="option-1">Option 1</SlOption>
<SlOption value="option-2">Option 2</SlOption>
<SlOption value="option-3">Option 3</SlOption>
Expand Down Expand Up @@ -269,7 +269,7 @@ import SlOption from '@shoelace-style/shoelace/dist/react/option';
import SlSelect from '@shoelace-style/shoelace/dist/react/select';
const App = () => (
<SlSelect value="option-1 option-2" multiple clearable>
<SlSelect value={["option-1", "option-2"]} multiple clearable>
<SlOption value="option-1">Option 1</SlOption>
<SlOption value="option-2">Option 2</SlOption>
<SlOption value="option-3">Option 3</SlOption>
Expand Down

0 comments on commit caf4706

Please sign in to comment.