https://dev.kronoz.win/r/marzneshin.git
| 1 |
4056c66 |
Dawsh |
1y ago |
import * as React from "react" |
| 2 |
4056c66 |
Dawsh |
1y ago |
import * as AccordionPrimitive from "@radix-ui/react-accordion" |
| 3 |
4056c66 |
Dawsh |
1y ago |
|
| 4 |
4056c66 |
Dawsh |
1y ago |
import { cn } from "@marzneshin/common/utils" |
| 5 |
4056c66 |
Dawsh |
1y ago |
|
| 6 |
4056c66 |
Dawsh |
1y ago |
export const AccordionContent = React.forwardRef< |
| 7 |
4056c66 |
Dawsh |
1y ago |
React.ElementRef<typeof AccordionPrimitive.Content>, |
| 8 |
4056c66 |
Dawsh |
1y ago |
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> |
| 9 |
4056c66 |
Dawsh |
1y ago |
>(({ className, children, ...props }, ref) => ( |
| 10 |
4056c66 |
Dawsh |
1y ago |
<AccordionPrimitive.Content |
| 11 |
4056c66 |
Dawsh |
1y ago |
ref={ref} |
| 12 |
4056c66 |
Dawsh |
1y ago |
className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" |
| 13 |
4056c66 |
Dawsh |
1y ago |
{...props} |
| 14 |
4056c66 |
Dawsh |
1y ago |
> |
| 15 |
4056c66 |
Dawsh |
1y ago |
<div className={cn("pb-4 pt-0", className)}>{children}</div> |
| 16 |
4056c66 |
Dawsh |
1y ago |
</AccordionPrimitive.Content> |
| 17 |
4056c66 |
Dawsh |
1y ago |
)) |
| 18 |
4056c66 |
Dawsh |
1y ago |
|