Skip to content

Commit 4f1c6de

Browse files
committed
fix(spindle-ui): variable name
1 parent 771ed87 commit 4f1c6de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/spindle-ui/src/ButtonSwitch/design-doc.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
value: 'option2',
2424
},
2525
]}
26-
onChange={(value) => console.log(value)}
26+
onClick={(value) => console.log(value)}
2727
/>
2828
```
2929

@@ -38,7 +38,7 @@
3838
- Surface Tertiary (背景色)
3939
- Text Medium Emphasis (テキスト色)
4040
- Surface Quaternary (ホバー時の背景色)
41-
- Surface Primary (選択時の背景色)
41+
- Surface Accent Primary (選択時の背景色)
4242
- Text High Emphasis Inverse (選択時のテキスト色)
4343
- Border Row Empasis (中央のボーダー色)
4444

@@ -51,7 +51,7 @@ type Props = {
5151
label: string;
5252
value: string;
5353
}[];
54-
onChange: (value: string) => void;
54+
onClick?: (value: string) => void;
5555
};
5656
```
5757

0 commit comments

Comments
 (0)