Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea49c91

Browse files
committed
feat: added shadcn
1 parentf8eb7a1 commitea49c91

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*asReactfrom"react"
2-
import*asSelectPrimitivefrom"@radix-ui/react-select"
3-
import{Check,ChevronDown,ChevronUp}from"lucide-react"
1+
import*asSelectPrimitivefrom"@radix-ui/react-select";
2+
import{Check,ChevronDown,ChevronUp}from"lucide-react";
3+
import*asReactfrom"react";
44

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

7-
constSelect=SelectPrimitive.Root
7+
constSelect=SelectPrimitive.Root;
88

9-
constSelectGroup=SelectPrimitive.Group
9+
constSelectGroup=SelectPrimitive.Group;
1010

11-
constSelectValue=SelectPrimitive.Value
11+
constSelectValue=SelectPrimitive.Value;
1212

1313
constSelectTrigger=React.forwardRef<
1414
React.ElementRef<typeofSelectPrimitive.Trigger>,
@@ -27,8 +27,8 @@ const SelectTrigger = React.forwardRef<
2727
<ChevronDownclassName="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
constSelectScrollUpButton=React.forwardRef<
3434
React.ElementRef<typeofSelectPrimitive.ScrollUpButton>,
@@ -44,8 +44,8 @@ const SelectScrollUpButton = React.forwardRef<
4444
>
4545
<ChevronUpclassName="h-4 w-4"/>
4646
</SelectPrimitive.ScrollUpButton>
47-
))
48-
SelectScrollUpButton.displayName=SelectPrimitive.ScrollUpButton.displayName
47+
));
48+
SelectScrollUpButton.displayName=SelectPrimitive.ScrollUpButton.displayName;
4949

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

6868
constSelectContent=React.forwardRef<
6969
React.ElementRef<typeofSelectPrimitive.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
constSelectLabel=React.forwardRef<
101101
React.ElementRef<typeofSelectPrimitive.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
constSelectItem=React.forwardRef<
113113
React.ElementRef<typeofSelectPrimitive.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
constSelectSeparator=React.forwardRef<
135135
React.ElementRef<typeofSelectPrimitive.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)

[8]ページ先頭

©2009-2025 Movatter.jp