@@ -92,42 +92,49 @@ const AccordionComponent: React.FC<AccordionProps> = ({
9292
9393export default AccordionComponent
9494
95- const AccordionTrigger : React . FC < any > = React . forwardRef (
96- ( { children, className, variant, ...props } , forwardedRef ) => (
97- < Accordion . Header className = "flex" asChild >
98- < Accordion . Trigger
99- className = { clsx (
100- 'group flex w-full items-center justify-between border-b p-4 pr-3 font-mono text-sm font-medium leading-none hover:bg-foreground/20' ,
101-
102- className ,
103- ) }
104- { ...props }
105- ref = { forwardedRef }
106- >
107- < div className = "flex items-center gap-1.5" > { children } </ div >
108- < div className = "flex items-center gap-2" >
109- < span className = "font-mono text-xs font-normal uppercase text-muted-foreground" >
110- { variant }
111- </ span >
112- < Icon
113- name = "TriangleDownSmall"
114- className = "transition group-radix-state-open:rotate-180"
115- aria-hidden
116- />
117- </ div >
118- </ Accordion . Trigger >
119- </ Accordion . Header >
120- ) ,
121- )
95+ const AccordionTrigger : React . FC < any > = ( {
96+ ref : forwardedRef ,
97+ children,
98+ className,
99+ variant,
100+ ...props
101+ } ) => (
102+ < Accordion . Header className = "flex" asChild >
103+ < Accordion . Trigger
104+ className = { clsx (
105+ 'group flex w-full items-center justify-between border-b p-4 pr-3 font-mono text-sm font-medium leading-none hover:bg-foreground/20' ,
122106
123- const AccordionContent : React . FC < any > = React . forwardRef (
124- ( { children, className, ...props } , forwardedRef ) => (
125- < Accordion . Content
126- className = { clsx ( '' , className ) }
107+ className ,
108+ ) }
127109 { ...props }
128110 ref = { forwardedRef }
129111 >
130- < div > { children } </ div >
131- </ Accordion . Content >
132- ) ,
112+ < div className = "flex items-center gap-1.5" > { children } </ div >
113+ < div className = "flex items-center gap-2" >
114+ < span className = "font-mono text-xs font-normal uppercase text-muted-foreground" >
115+ { variant }
116+ </ span >
117+ < Icon
118+ name = "TriangleDownSmall"
119+ className = "transition group-radix-state-open:rotate-180"
120+ aria-hidden
121+ />
122+ </ div >
123+ </ Accordion . Trigger >
124+ </ Accordion . Header >
125+ )
126+
127+ const AccordionContent : React . FC < any > = ( {
128+ ref : forwardedRef ,
129+ children,
130+ className,
131+ ...props
132+ } ) => (
133+ < Accordion . Content
134+ className = { clsx ( '' , className ) }
135+ { ...props }
136+ ref = { forwardedRef }
137+ >
138+ < div > { children } </ div >
139+ </ Accordion . Content >
133140)
0 commit comments