-
Notifications
You must be signed in to change notification settings - Fork 4k
/
types.ts
48 lines (46 loc) · 848 Bytes
/
types.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
/**
* External dependencies
*/
import type { ReactNode } from 'react';
/**
* Internal dependencies
*/
import type { IconType } from '../icon';
export type PlaceholderProps = {
/**
* The children elements.
*/
children?: ReactNode;
/**
* Class to set on the container div.
*/
className?: string;
/**
* If provided, renders an icon next to the label.
*/
icon?: IconType;
/**
* Instructions of the placeholder.
*/
instructions?: string;
/**
* Changes placeholder children layout from flex-row to flex-column.
*/
isColumnLayout?: boolean;
/**
* Title of the placeholder.
*/
label?: string;
/**
* A rendered notices list
*/
notices?: ReactNode;
/**
* Preview to be rendered in the placeholder.
*/
preview?: ReactNode;
/**
* Outputs a placeholder illustration.
*/
withIllustration?: boolean;
};