File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
docs/content/docs/components Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ description: A dropdown is a toggleable that allows the user to choose one valu
24
24
## Usage
25
25
26
26
<Dropdown className = " w-96" >
27
- <DropdownTrigger asChild >
28
- <Button variant = " outline" >Open</Button >
29
- </DropdownTrigger >
30
- <DropdownContent className = " max-h-72" >
27
+ <div className = ' flex justify-center' >
28
+ <DropdownTrigger asChild >
29
+ <Button >Open</Button >
30
+ </DropdownTrigger >
31
+ </div >
32
+ <DropdownContent >
31
33
<DropdownLabel >My Account</DropdownLabel >
32
34
<DropdownSeparator />
33
35
<DropdownGroup >
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export const dropdownSubContent = cva('z-50 min-w-[8rem] rounded-medium shadow-m
106
106
* // accordion elements
107
107
* </DropdownContent>
108
108
*/
109
- export const dropdownContent = cva ( 'z-50 min-w-[8rem] border border-default-300 p-3 overflow-hidden rounded-medium data-[state=open]:animate-dropdown-in data-[state=closed]:animate-dropdown-out shadow-md data-[side=top]:slide-in-from-bottom-2 data-[side=right]:slide-in-from-left-2 data-[side=bottom]:slide-in-from-top-2' )
109
+ export const dropdownContent = cva ( 'z-50 min-w-56 border border-default-300 p-3 bg-background overflow-hidden rounded-medium data-[state=open]:animate-dropdown-in data-[state=closed]:animate-dropdown-out shadow-md data-[side=top]:slide-in-from-bottom-2 data-[side=right]:slide-in-from-left-2 data-[side=bottom]:slide-in-from-top-2' )
110
110
111
111
/**
112
112
* Dropdown Item **Class Variants** component
You can’t perform that action at this time.
0 commit comments