Native Select
A native <select>, styled to match the other controls.
Installation
Shadwire follows shadcn/ui's open code model: the component's source is copied into your application and becomes yours. Install it with the CLI:
The native-select registry item installs these files:
-
app/components/ui_component.rb -
app/components/ui/native_select_component.rb -
app/helpers/ui/native_select_helper.rb -
vendor/shadwire/shadwire.css
Haven't installed the CLI yet? gem install shadwire, then shadwire init.
Usage
Examples
Default
A native select with a styled chevron and focus ring.
API reference
Every part accepts class / class_name and **attrs.
None of its parts takes another argument.