CoreNative select
NativeSelect API
Every prop of the 3 parts NativeSelect exports, generated from the package manifest.
import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- NativeSelect · NativeSelectOptGroup · NativeSelectOptiontypes: NativeSelectProps
- Variants
- size: default | sm
- Contract
- packages/brand-system/src/components/native-select.contract.test-d.ts
- Demos
- 4 on the NativeSelect page — rendered live, hydrated
- Source
- packages/brand-system/src/components/native-select.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what NativeSelect is for, how it composes and what it looks like, see NativeSelect.
NativeSelect
NativeSelectProps
Prop
Type
Also accepts everything from Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'>.
NativeSelectOptGroup
A styled <optgroup> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
NativeSelectOption
A styled <option> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.