This commit is contained in:
Jonathan Summers-Muir committed 2023-05-23 20:38:45 +08:00
1 parent 729e6d778d
commit 87e8bc6282
2 files changed
+7 -2

No files matched your search

@@ -26,10 +26,13 @@ const AccordionContext = createContext<ContextValue>({
export interface AccordionProps {
children?: React.ReactNode
className?: string
defaultActiveId?: (string | number)[]
icon?: React.ReactNode
iconPosition?: Align
onChange?: (item: string | string[]) => void
openBehaviour: 'single' | 'multiple'
type?: Type
size?: Size
defaultValue?: string | string[] | undefined
justified?: Boolean
chevronAlign?: Align
@@ -71,6 +74,8 @@ function Accordion({
return (
<>
{/* //
@ts-expect-error */}
<RadixAccordion.Root
type={openBehaviour}
onValueChange={handleOnChange}
@@ -1,6 +1,6 @@
import React from 'react'
import Alert, { AlertProps } from '../shadcn/updated/Alert/Alert'
import Alert, { AlertProps } from './Alert'
export default {
title: 'Displays/Alerts',