-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add documentation of how to use <.input type="select"> to Core Components #5764
base: main
Are you sure you want to change the base?
Conversation
Can you please add this documentation to |
Ping :) |
Done: phoenixframework/phoenix_html#460 |
@ponychicken merged and published! |
I left the two examples and replaced the rest with a link to opts_for_select |
@@ -263,10 +263,18 @@ defmodule <%= @web_namespace %>.CoreComponents do | |||
for more information. Unsupported types, such as hidden and radio, | |||
are best written directly in your templates. | |||
|
|||
## Examples | |||
## Basic Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is fine to call it examples, no need to change that :)
## Basic Examples | |
## Examples |
## Select type | ||
|
||
When using `type="select"`, you must pass the `options` and optionally | ||
a `value` to mark which option should be preselected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a quick example just below this?
Fixes phoenixframework/phoenix_live_view#3197