Skip to content

Commit

Permalink
docs: added Select input description and example (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbouw authored Jan 22, 2025
1 parent 11f946c commit b3e62ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b3e62ba

Please sign in to comment.