UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

44 lines (38 loc) 1.4 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { Collapsible as Collapsible$1 } from '@base-ui-components/react/collapsible'; import { ComponentProps } from 'react'; interface ContentProps extends ComponentProps<typeof Collapsible$1.Panel> { /** * Change the default rendered element for the one passed as a child, merging their props and behavior. */ asChild?: boolean; } declare const Content: { ({ asChild, className, children, hiddenUntilFound, ...props }: ContentProps): react_jsx_runtime.JSX.Element; displayName: string; }; interface RootProps extends ComponentProps<typeof Collapsible$1.Root> { /** * Change the default rendered element for the one passed as a child, merging their props and behavior. */ asChild?: boolean; } declare const Root: { ({ asChild, children, ...props }: RootProps): react_jsx_runtime.JSX.Element; displayName: string; }; interface TriggerProps extends ComponentProps<'button'> { /** * Change the default rendered element for the one passed as a child, merging their props and behavior. */ asChild?: boolean; } declare const Trigger: { ({ asChild, children, ...props }: TriggerProps): react_jsx_runtime.JSX.Element; displayName: string; }; declare const Collapsible: typeof Root & { Trigger: typeof Trigger; Content: typeof Content; }; export { Collapsible };