import React from "react"; import * as Accordion from "@radix-ui/react-accordion"; import cx from "classnames"; import { ChevronDownIcon } from "@radix-ui/react-icons"; import "./Accordion.scss"; const CustomAccordion = () => ( Is it accessible? Yes. It adheres to the WAI-ARIA design pattern. Is it unstyled? Yes. It's unstyled by default, giving you freedom over the look and feel. Can it be animated?
Yes! You can animate the Accordion with CSS or JavaScript.
); export type AccordionTriggerProps = { children: string; className?: string; }; const AccordionTrigger = ({ children, className, ...props }: AccordionTriggerProps) => ( {children} ); export type AccordionContentProps = { children: string; className?: string; }; const AccordionContent = ({ children, className, ...props }: AccordionContentProps) => (
{children}
); export default CustomAccordion;