-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathpage-header.d.ts
61 lines (60 loc) · 2.01 KB
/
page-header.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
declare module '@salesforce/design-system-react/components/page-header' {
import React from 'react';
type Props = {
/**
* Optional class name
*/
className?: any[] | Record<string, any> | string;
/**
* An array of detail blocks (used in "recordHome" variant)
*/
details?: any[];
/**
* The label property can be a string or a React element
*/
label?: string | React.ReactElement;
/**
* The page header icon. Expects an Icon component
*/
icon?: React.ReactElement;
/**
* The info property can be a string or a React element
*/
info?: string | React.ReactElement;
/**
* Makes PageHeader joinable with DataTable by adding appropriate classes/styling
*/
joined?: boolean;
/**
* Used with the `object-home` variant. Accepts a node, typically a Dropdown component
*/
nameSwitcherDropdown?: React.ReactNode;
/**
* Actions content to appear on the upper right side of the page header.
* Returned content must be either a SLDSPageHeaderControl component or an element/fragment with children that are all SLDSPageHeaderControl components.
* Prop 'contentRight' will be deprecated soon, use 'onRenderActions' instead.
*/
onRenderActions?: (v: any) => any;
/**
* Controls content to appear on the lower right side of the page header.
* Returned content must be either a SLDSPageHeaderControl component or an element/fragment with children that are all SLDSPageHeaderControl components.
* Prop 'navRight' will be deprecated soon, use 'onRenderControls' instead.
*/
onRenderControls?: (v: any) => any;
/**
* The title property can be a string or a React element
*/
title?: string | React.ReactElement;
/**
* An array of react elements presumably anchor <a> elements.
*/
trail?: any[];
/**
* The type of component
* Note: Extra options are added to make the version backward compatible
*/
variant?: 'base' | 'object-home' | 'record-home' | 'related-list';
};
function Component(props: Props): JSX.Element;
export default Component;
}