Skip to content

Commit ea49c91

Browse files
committed
feat: added shadcn
1 parent f8eb7a1 commit ea49c91

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/components/ui/select.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import * as React from "react"
2-
import * as SelectPrimitive from "@radix-ui/react-select"
3-
import { Check, ChevronDown, ChevronUp } from "lucide-react"
1+
import * as SelectPrimitive from "@radix-ui/react-select";
2+
import { Check, ChevronDown, ChevronUp } from "lucide-react";
3+
import * as React from "react";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

7-
const Select = SelectPrimitive.Root
7+
const Select = SelectPrimitive.Root;
88

9-
const SelectGroup = SelectPrimitive.Group
9+
const SelectGroup = SelectPrimitive.Group;
1010

11-
const SelectValue = SelectPrimitive.Value
11+
const SelectValue = SelectPrimitive.Value;
1212

1313
const SelectTrigger = React.forwardRef<
1414
React.ElementRef<typeof SelectPrimitive.Trigger>,
@@ -27,8 +27,8 @@ const SelectTrigger = React.forwardRef<
2727
<ChevronDown className="h-4 w-4 opacity-50" />
2828
</SelectPrimitive.Icon>
2929
</SelectPrimitive.Trigger>
30-
))
31-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
30+
));
31+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
3232

3333
const SelectScrollUpButton = React.forwardRef<
3434
React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
@@ -44,8 +44,8 @@ const SelectScrollUpButton = React.forwardRef<
4444
>
4545
<ChevronUp className="h-4 w-4" />
4646
</SelectPrimitive.ScrollUpButton>
47-
))
48-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
47+
));
48+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
4949

5050
const SelectScrollDownButton = React.forwardRef<
5151
React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
@@ -61,9 +61,9 @@ const SelectScrollDownButton = React.forwardRef<
6161
>
6262
<ChevronDown className="h-4 w-4" />
6363
</SelectPrimitive.ScrollDownButton>
64-
))
64+
));
6565
SelectScrollDownButton.displayName =
66-
SelectPrimitive.ScrollDownButton.displayName
66+
SelectPrimitive.ScrollDownButton.displayName;
6767

6868
const SelectContent = React.forwardRef<
6969
React.ElementRef<typeof SelectPrimitive.Content>,
@@ -94,8 +94,8 @@ const SelectContent = React.forwardRef<
9494
<SelectScrollDownButton />
9595
</SelectPrimitive.Content>
9696
</SelectPrimitive.Portal>
97-
))
98-
SelectContent.displayName = SelectPrimitive.Content.displayName
97+
));
98+
SelectContent.displayName = SelectPrimitive.Content.displayName;
9999

100100
const SelectLabel = React.forwardRef<
101101
React.ElementRef<typeof SelectPrimitive.Label>,
@@ -106,8 +106,8 @@ const SelectLabel = React.forwardRef<
106106
className={cn("px-2 py-1.5 text-sm font-semibold", className)}
107107
{...props}
108108
/>
109-
))
110-
SelectLabel.displayName = SelectPrimitive.Label.displayName
109+
));
110+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
111111

112112
const SelectItem = React.forwardRef<
113113
React.ElementRef<typeof SelectPrimitive.Item>,
@@ -128,8 +128,8 @@ const SelectItem = React.forwardRef<
128128
</span>
129129
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
130130
</SelectPrimitive.Item>
131-
))
132-
SelectItem.displayName = SelectPrimitive.Item.displayName
131+
));
132+
SelectItem.displayName = SelectPrimitive.Item.displayName;
133133

134134
const SelectSeparator = React.forwardRef<
135135
React.ElementRef<typeof SelectPrimitive.Separator>,
@@ -140,8 +140,8 @@ const SelectSeparator = React.forwardRef<
140140
className={cn("-mx-1 my-1 h-px bg-muted", className)}
141141
{...props}
142142
/>
143-
))
144-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName
143+
));
144+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
145145

146146
export {
147147
Select,
@@ -154,4 +154,4 @@ export {
154154
SelectSeparator,
155155
SelectScrollUpButton,
156156
SelectScrollDownButton,
157-
}
157+
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy