UNPKG

1.16 kBTypeScriptView Raw
1import * as React from 'react';
2export interface DataListActionProps extends Omit<React.HTMLProps<HTMLDivElement>, 'children'> {
3 /** Content rendered as DataList Action (e.g <Button> or <Dropdown>) */
4 children: React.ReactNode;
5 /** Additional classes added to the DataList Action */
6 className?: string;
7 /** Identify the DataList toggle number */
8 id: string;
9 /** Adds accessible text to the DataList Action */
10 'aria-labelledby': string;
11 /** Adds accessible text to the DataList Action */
12 'aria-label': string;
13 /** What breakpoints to hide/show the data list action */
14 visibility?: {
15 default?: 'hidden' | 'visible';
16 sm?: 'hidden' | 'visible';
17 md?: 'hidden' | 'visible';
18 lg?: 'hidden' | 'visible';
19 xl?: 'hidden' | 'visible';
20 '2xl'?: 'hidden' | 'visible';
21 };
22 /** Flag to indicate that the action is a plain button (e.g. kebab dropdown toggle) so that styling is applied to align the button */
23 isPlainButtonAction?: boolean;
24}
25export declare const DataListAction: React.FunctionComponent<DataListActionProps>;
26//# sourceMappingURL=DataListAction.d.ts.map
\No newline at end of file