@cerberus-design/react
Version:
The Cerberus Design React component library.
48 lines (47 loc) • 3.16 kB
text/typescript
import { Accordion, AccordionItemContentProps as ArkAccordionItemContentProps, AccordionItemIndicatorProps as ArkAccordionItemIndicatorProps, AccordionItemProps as ArkAccordionItemProps, AccordionItemTriggerProps as ArkAccordionItemTriggerProps, AccordionRootProps as ArkAccordionRootProps } from '@ark-ui/react/accordion';
import { AccordionVariantProps } from 'styled-system/recipes';
import { CerberusPrimitiveProps } from '../../system/index';
import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import { BaseCerberusProps } from '../..';
/**
* The primitive root component of the Accordion component.
*
* This component returns the Ark `Accordion.Root` component which has a
* base style using the Cerberus `accordion` recipe that can be overridden.
*/
export declare const AccordionRoot: ForwardRefExoticComponent< BaseCerberusProps & Accordion.RootProps & AccordionVariantProps & {
children?: ReactNode | undefined;
} & RefAttributes<unknown>>;
export type AccordionRootProps = CerberusPrimitiveProps<ArkAccordionRootProps & AccordionVariantProps>;
/**
* The primitive item component of the Accordion component.
*
* This component returns the Ark `Accordion.Item` component which has a
* base style using the Cerberus `accordion` recipe that can be overridden.
*/
export declare const AccordionItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Accordion.ItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;
export type AccordionItemProps = CerberusPrimitiveProps<ArkAccordionItemProps & AccordionVariantProps>;
/**
* The primitive trigger component of the Accordion component.
*
* This component returns the Ark `Accordion.ItemTrigger` component which has
* a base style using the Cerberus `accordion` recipe that can be overridden.
*/
export declare const AccordionItemTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Accordion.ItemTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<unknown>>;
export type AccordionItemTriggerProps = CerberusPrimitiveProps<ArkAccordionItemTriggerProps>;
/**
* The primitive item indicator component of the Accordion component.
*
* This component returns the Ark `Accordion.ItemIndicator` component which has
* a base style using the Cerberus `accordion` recipe that can be overridden.
*/
export declare const AccordionItemIndicator: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Accordion.ItemIndicatorProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;
export type AccordionItemIndicatorProps = CerberusPrimitiveProps<ArkAccordionItemIndicatorProps>;
/**
* The primitive content component of the Accordion component.
*
* This component returns the Ark `Accordion.Content` component which has a
* base style using the Cerberus `accordion` recipe that can be overridden.
*/
export declare const AccordionItemContent: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Accordion.ItemContentProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;
export type AccordionItemContentProps = CerberusPrimitiveProps<ArkAccordionItemContentProps>;