Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 335f28d

Browse files
lekoafTigge
authored andcommitted
docs: minor Select improvements
- Fixed a typo - Updated "Filled variant (with check icon)" example to include the check from the start
1 parent 920ea69 commit 335f28d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/docs/src/mdx/coreComponents/Select.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const tzOptions = [
4444
export const DemoComponent = ({}) => {
4545
const [selectedFruit, setSelectedFruit] = useState('')
4646
const [selectedValue, setSelectedValue] = useState('')
47+
const [selectedWithCheck, setSelectedWithCheck] = useState('apple')
4748
return (
4849
<div
4950
style={{
@@ -73,7 +74,7 @@ export const DemoComponent = ({}) => {
7374
onChange={setSelectedFruit}
7475
/>
7576
<SelectField
76-
label="Transparent vairant"
77+
label="Transparent variant"
7778
options={tzOptions}
7879
placeholder="Select..."
7980
width="full"
@@ -97,8 +98,8 @@ export const DemoComponent = ({}) => {
9798
options={fruitOptions}
9899
placeholder="Select..."
99100
width="small"
100-
value={selectedFruit}
101-
onChange={setSelectedFruit}
101+
value={selectedWithCheck}
102+
onChange={setSelectedWithCheck}
102103
selectMarker="check"
103104
/>
104105
</div>

0 commit comments

Comments
 (0)