From 7aaddb1e618f08b942034346b9ed6f2e6ce762ae Mon Sep 17 00:00:00 2001 From: Kristian Bouw Date: Thu, 18 Apr 2024 23:51:30 -0400 Subject: [PATCH] Added `Select` input description and example --- docs/inputs.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/inputs.md b/docs/inputs.md index 3e401dfa..e225f377 100644 --- a/docs/inputs.md +++ b/docs/inputs.md @@ -75,7 +75,14 @@ All rules from Number type also apply. ### Select -@todo +A dropdown select input with a specified list of elements. An optional default value can be provided. + +```jsx +const presetColor = useControls({ + options: ['red', 'green', 'blue', 'yellow'], + value: 'red' +}) +``` ### Image