new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · Components · all subjects

native-select/usage

9 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Native Select basic usage example

The following example shows how to import and use the native-select component with individual options: ```tsx import { NativeSelect, NativeSelectOptGroup, NativeSelectOption, } from "@/components/ui/native-select" <NativeSelect> <NativeSelectOption value="">Select a fruit</NativeSelectOption> <NativeSelectOption value="apple">Apple</NativeSelectOption> <NativeSelectOption value="banana">Banana</NativeSelectOption> <NativeSelectOption value="blueberry">Blueberry</NativeSelectOption> <NativeSelectOption value="pineapple">Pineapple</NativeSelectOption> </NativeSelect> ```

Native Select groups example

Use NativeSelectOptGroup to organize options into categories within a NativeSelect component.

Native Select styled alternative

For a styled select component with custom styling and animations, see the Select component instead of NativeSelect.

NativeSelect basic usage import

Import NativeSelect, NativeSelectOptGroup, and NativeSelectOption from @/components/ui/native-select.

NativeSelect basic example

A basic NativeSelect example with options: <NativeSelect> <NativeSelectOption value="">Select a fruit</NativeSelectOption> <NativeSelectOption value="apple">Apple</NativeSelectOption> <NativeSelectOption value="banana">Banana</NativeSelectOption> <NativeSelectOption value="blueberry">Blueberry</NativeSelectOption> <NativeSelectOption value="pineapple">Pineapple</NativeSelectOption> </NativeSelect>

NativeSelectOptGroup example with label

Example of NativeSelectOptGroup with label and options: <NativeSelectOptGroup label="Fruits"> <NativeSelectOption value="apple">Apple</NativeSelectOption> <NativeSelectOption value="banana">Banana</NativeSelectOption> </NativeSelectOptGroup>

Native Select import statements

Import the Native Select components with: import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "@/components/ui/native-select"

Native Select basic usage example

A basic Native Select component with options: ```tsx <NativeSelect> <NativeSelectOption value="">Select a fruit</NativeSelectOption> <NativeSelectOption value="apple">Apple</NativeSelectOption> <NativeSelectOption value="banana">Banana</NativeSelectOption> <NativeSelectOption value="blueberry">Blueberry</NativeSelectOption> <NativeSelectOption value="pineapple">Pineapple</NativeSelectOption> </NativeSelect> ```

NativeSelectOptGroup example with options

Example of using NativeSelectOptGroup to group related options: ```tsx <NativeSelectOptGroup label="Fruits"> <NativeSelectOption value="apple">Apple</NativeSelectOption> <NativeSelectOption value="banana">Banana</NativeSelectOption> </NativeSelectOptGroup> ```

Give your agent this brain