-
Notifications
You must be signed in to change notification settings - Fork 429
/
Copy pathsection.d.ts
44 lines (38 loc) · 1.05 KB
/
section.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
declare module '@salesforce/design-system-react/components/app-launcher/section' {
import React from 'react';
type Props = {
/**
* **Assistive text for accessibility.**
* This object is merged with the default props object on every render.
* * `collapseSection`: The assistive text for the section collapse icons.
*/
assistiveText?: Partial<{
collapseSection?: string;
}>;
/**
* The title for this section of apps
*/
title: string /*.isRequired*/;
/**
* Allows the user to show/hide the section
*/
toggleable?: boolean;
/**
* An array of applications to display
*/
children: React.ReactNode /*.isRequired*/;
/**
* Controls the open/closed state of the section
*/
isOpen?: boolean;
/**
* Callback for when section is toggled. Passes "isOpen" bool. Forces `toggleable` to true
*/
onToggleClick?: (v: any) => any;
};
/**
* App Launcher Sections allow users to categorize App Tiles as well as toggle their display
*/
function Component(props: Props): JSX.Element;
export default Component;
}