@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
57 lines (56 loc) • 1.57 kB
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
/// <reference types="react" />
import PropTypes from 'prop-types';
interface AccordionSkeletonProps {
/**
* Specify the alignment of the accordion heading
* title and chevron.
*/
align?: 'start' | 'end';
/**
* Specify an optional className to add.
*/
className?: string;
/**
* Set number of items to render.
*/
count?: number;
/**
* Specify whether an individual AccordionItem should
* be flush, default is false.
*/
isFlush?: boolean;
/**
* `false` to not display the first item opened.
*/
open?: boolean;
}
declare function AccordionSkeleton({ align, className, count, isFlush, open, ...rest }: AccordionSkeletonProps): JSX.Element;
declare namespace AccordionSkeleton {
var propTypes: {
/**
* Specify the alignment of the accordion heading title and chevron.
*/
align: PropTypes.Requireable<string>;
/**
* Specify an optional className to add.
*/
className: PropTypes.Requireable<string>;
/**
* Set number of items to render
*/
count: PropTypes.Requireable<number>;
/**
* Specify whether an individual AccordionItem should be flush, default is false
*/
isFlush: PropTypes.Requireable<boolean>;
/**
* `false` to not display the first item opened
*/
open: PropTypes.Requireable<boolean>;
};
}
export default AccordionSkeleton;
export { AccordionSkeleton };