Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inputs.md #435

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ All rules from Number type also apply.

### Select

@todo
A dropdown select. Add options with array:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might also provide the map style. Here's my take, for a ClojureScript wrapper: https://leva.mentat.org/#select

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if thats useful for general public, also the other Inputs don't have map style either


```jsx
const { difficulty } = useControls({
difficulty: { value: 'easy' , options:['easy', 'medium', 'hard'] },
})
```

### Image

Expand Down