Skip to content

Commit 02f0929

Browse files
authored
Fix SelectMenu width & height docs (#1620)
1 parent 582a923 commit 02f0929

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/documentation/components/select-menu.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ function NoFilterAndTitleSelectedMenuExample() {
3939
<SelectMenu
4040
title="Select name"
4141
options={['Apple', 'Apricot', 'Banana', 'Cherry', 'Cucumber'].map((label) => ({ label, value: label }))}
42-
selected={selected}
4342
hasFilter={false}
4443
hasTitle={false}
44+
selected={selected}
4545
onSelect={(item) => setSelected(item.value)}
4646
>
4747
<Button>{selected || 'Select name...'}</Button>
@@ -50,7 +50,7 @@ function NoFilterAndTitleSelectedMenuExample() {
5050
}
5151
```
5252

53-
# Change the height and width
53+
# Change the width and height
5454

5555
You can make the size of a **SelectMenu** custom via the **width** and **height** properties.
5656

@@ -61,9 +61,9 @@ function CustomSizeSelectedMenuExample() {
6161
<SelectMenu
6262
title="Select name"
6363
options={['Apple', 'Apricot', 'Banana', 'Cherry', 'Cucumber'].map((label) => ({ label, value: label }))}
64+
width={280}
65+
height={200}
6466
selected={selected}
65-
hasFilter={false}
66-
hasTitle={false}
6767
onSelect={(item) => setSelected(item.value)}
6868
>
6969
<Button>{selected || 'Select name...'}</Button>

0 commit comments

Comments
 (0)