Components/Native Select

Native Select

Styled native HTML select element. Use this when you need full mobile/OS integration or for forms that must work without JavaScript.


Installation

npx ajaxui add native-select

Props

PropTypeDefaultDescription
selectSize"sm" | "md" | "lg""md"-
variant"default" | "filled" | "ghost" | "underline""default"Bordered, muted surface, borderless until hover/focus, or bottom-border only.
errorbooleanfalse-
classNamestring-Applied to the wrapper, so width constraints size the select and its chevron together.