UNPKG

@capgeminiuk/dcx-react-library

Version:

[![CircleCI](https://circleci.com/gh/Capgemini/dcx-react-library.svg?style=svg)](https://circleci.com/gh/Capgemini/dcx-react-library)

46 lines (45 loc) 1.06 kB
import React from 'react'; type DetailsProps = { /** * details */ children: JSX.Element | string; /** * summary text */ summary: string; /** * details class name */ detailsClassName?: string; /** * details text class name */ detailsTextClassName?: string; /** * details open boolean */ open?: boolean; /** * detail open class */ openClassName?: string; /** * summary class name */ summaryClassName?: string; /** * allow to customise the span with all the properties needed */ summaryTextProps?: React.AllHTMLAttributes<HTMLSpanElement>; /** * summary text class name */ summaryTextClassName?: string; /** * details tab index */ tabIndex?: number; }; export declare const Details: ({ children, summary, detailsClassName, detailsTextClassName, open, openClassName, summaryClassName, summaryTextClassName, tabIndex, summaryTextProps, }: DetailsProps) => React.JSX.Element; export {};