{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "native-select-example", "title": "Native Select", "registryDependencies": [ "field", "native-select", "example" ], "files": [ { "path": "registry/base-nova/examples/native-select-example.tsx", "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport {\n NativeSelect,\n NativeSelectOptGroup,\n NativeSelectOption,\n} from \"@/registry/bases/base/ui/native-select\"\n\nexport default function NativeSelectExample() {\n return (\n \n \n \n \n \n \n \n \n )\n}\n\nfunction NativeSelectBasic() {\n return (\n \n \n Select a fruit\n Apple\n Banana\n Blueberry\n \n Grapes\n \n Pineapple\n \n \n )\n}\n\nfunction NativeSelectWithGroups() {\n return (\n \n \n Select a food\n \n Apple\n Banana\n Blueberry\n \n \n Carrot\n Broccoli\n Spinach\n \n \n \n )\n}\n\nfunction NativeSelectSizes() {\n return (\n \n \n \n Select a fruit\n Apple\n Banana\n Blueberry\n \n \n Select a fruit\n Apple\n Banana\n Blueberry\n \n \n \n )\n}\n\nfunction NativeSelectWithField() {\n return (\n \n \n Country\n \n Select a country\n United States\n United Kingdom\n Canada\n Australia\n \n Select your country of residence.\n \n \n )\n}\n\nfunction NativeSelectDisabled() {\n return (\n \n \n Disabled\n Apple\n Banana\n Blueberry\n \n \n )\n}\n\nfunction NativeSelectInvalid() {\n return (\n \n \n Error state\n Apple\n Banana\n Blueberry\n \n \n )\n}\n", "type": "registry:example" } ], "type": "registry:example" }