BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shipbase/ui/select

select

shipbase-ui/select
FreeComponent

shipbase/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/select.json

Source

./src/components/ui/select.tsxraw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/select.json · first 6 KB
1"use client"
2
3import * as React from "react"
4
5import { type HTMLArkProps, ark } from "@ark-ui/react/factory"
6import { Portal } from "@ark-ui/react/portal"
7import { Select as SelectPrimitive, selectAnatomy } from "@ark-ui/react/select"
8import { CheckIcon, ChevronDownIcon } from "lucide-react"
9
10import { cn } from "@/lib/utils"
11
12const parts = selectAnatomy.extendWith("separator").build()
13
14const SelectComponent = React.forwardRef(
15 <T extends SelectPrimitive.CollectionItem>(
16 props: SelectPrimitive.RootProps<T>,
17 ref: React.Ref<HTMLDivElement>
18 ) => <SelectPrimitive.Root ref={ref} {...props} />
19)
20SelectComponent.displayName = "Select"
21const Select = SelectComponent as <T extends SelectPrimitive.CollectionItem>(
22 props: SelectPrimitive.RootProps<T> &
23 React.RefAttributes<React.ElementRef<typeof SelectPrimitive.Root>>
24) => React.JSX.Element
25
26const SelectClearTrigger = React.forwardRef<
27 React.ElementRef<typeof SelectPrimitive.ClearTrigger>,
28 SelectPrimitive.ClearTriggerProps
29>(({ className, ...props }, ref) => (
30 <SelectPrimitive.ClearTrigger
31 ref={ref}
32 className={cn(
33 "absolute end-0 top-0 flex size-9 items-center justify-center rounded-md border border-transparent text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
34 className
35 )}
36 {...props}
37 />
38))
39SelectClearTrigger.displayName = "SelectClearTrigger"
40
41const SelectContent = React.forwardRef<
42 React.ElementRef<typeof SelectPrimitive.Content>,
43 SelectPrimitive.ContentProps
44>(({ className, ...props }, ref) => (
45 <Portal>
46 <SelectPrimitive.Positioner>
47 <SelectPrimitive.Content
48 ref={ref}
49 className={cn(
50 "relative w-full min-w-32 overflow-hidden rounded-md border border-input bg-popover p-1 text-popover-foreground shadow-lg",
51 "data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=open]:animate-in",
52 "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=left]:-translate-x-1 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 data-[placement=top]:-translate-y-1 data-[placement=right]:translate-x-1 data-[placement=bottom]:translate-y-1",
53 className
54 )}
55 {...props}
56 />
57// … truncated

What it pulls in

npm packages

  • @ark-ui/react
  • lucide-react

Files it writes

  • ./src/components/ui/select.tsx

Facts

Registry
shipbase/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

ui.shipbase.xyz shipbase/ui on GitHub Raw registry item This item as JSON

More from shipbase/ui

All 32 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshipbase/uiComponentsFree2 deps
avataravatarshipbase/uiComponentsFree1 dep
badgebadgeshipbase/uiComponentsFree2 deps
buttonbuttonshipbase/uiComponentsFree2 deps
cardcardshipbase/uiComponentsFree1 dep
checkboxcheckboxshipbase/uiComponentsFree2 deps
collapsiblecollapsibleshipbase/uiComponentsFree1 dep
comboboxcomboboxshipbase/uiComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex