Type Definition ybc::Select

source ·
pub type Select = FunctionComponent<select>;
Expand description

A wrapper around an HTML select tag.

https://bulma.io/documentation/form/select/

All YBC form components are controlled components. This means that the value of the field must be provided from a parent component, and changes to this component are propagated to the parent component via callback.

NOTE WELL: not all browsers will honor the value of the select element’s value on initial load. So if you have an initial value set for this component, ensure that the corresponding option element also has the selected=true attribute.