@saleor/macaw-ui
Version:
Saleor's UI component library
18 lines (16 loc) • 550 B
TypeScript
import { PropsWithBox } from '../Box';
interface SingleProps {
type?: "single";
defaultValue?: string;
value?: string;
onValueChange?: (value: string) => void;
}
interface MultipleProps {
type?: "multiple";
defaultValue?: string[];
value?: string[];
onValueChange?: (value: string[]) => void;
}
export type AccordionRootProps = PropsWithBox<MultipleProps | SingleProps>;
export declare const Root: import('react').ForwardRefExoticComponent<AccordionRootProps & import("react").RefAttributes<HTMLElement>>;
export {};