diff --git a/src/components/Accordion.tsx b/src/components/Accordion.tsx index b10ddd4..7168880 100644 --- a/src/components/Accordion.tsx +++ b/src/components/Accordion.tsx @@ -6,6 +6,7 @@ import { PropsWithChildren } from 'react'; import { css, jsx } from '@emotion/react'; import { MetrocommonTriangle } from './MetrocommonTriangle'; +// Need to use an intersection type so we can use "children" props export type AccordionProps = React.PropsWithChildren & { triangleColor?: string, title: React.ReactElement