import { ComponentChildren } from '../../shared/children'; import { ToggleEventProps } from '../../shared/events'; import { GlobalProps } from '../../shared/global'; export interface DetailsProps extends GlobalProps, ToggleEventProps { /** * The content of the details. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details */ children?: ComponentChildren; /** * Name of the element. * * This can be used to create multiple named disclosure boxes that where only one can be open at a time. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#multiple_named_disclosure_boxes */ name?: string; /** * Indicates whether the element should be open by default. * * This reflects to the `defaultopen` attribute. * * @default false */ defaultOpen?: boolean; /** * Sets the transition between the two states. * * @default `auto` */ toggleTransition?: 'none' | 'auto'; }