@heycar-uikit/core
Version:
The React UI library from HeyCar
29 lines (28 loc) • 870 B
TypeScript
/// <reference types="react" />
import React from 'react';
import { AnchorHTMLAttributes } from "react";
interface ComponentProps {
/**
* If `true`, the component will be extended.
*/
open: boolean;
/**
* The content of the collapse component
*/
children: React.ReactNode;
/**
* The id for testing
*/
dataTestId?: string;
/**
* A function that's triggered once expanding/collapsing transition ends
*/
onTransitionEnd?: (expanded: boolean) => void;
}
type AnchorCollapseProps = ComponentProps & AnchorHTMLAttributes<HTMLElement>;
type CollapseProps = AnchorCollapseProps;
declare function Collapse({ children, open, className, dataTestId, onTransitionEnd, ...restProps }: CollapseProps): React.JSX.Element;
declare namespace Collapse {
var displayName: string;
}
export { Collapse as default };