@@ -20,12 +20,15 @@ Wraps the given text in the given HTML header `size`.
20
20
21
21
#### Properties
22
22
23
- | Props | Type | Required | Values | Default | Description |
24
- | ------------- | ---------------- | :------: | -------------------- | ------- | -------------------------------------------------------------- |
25
- | ` elementType ` | ` String ` | ✅ | ` ['h1', 'h2', 'h3'] ` | - | - |
26
- | ` children ` | ` PropTypes.node ` | ✅ | - | - | - |
27
- | ` title ` | ` String ` | - | - | - | Text to show in a tooltip on hover over the element |
28
- | ` truncate ` | ` Bool ` | - | - | ` false ` | Option for truncate content in case the screen has small width |
23
+ | Props | Type | Required | Values | Default | Description |
24
+ | ------------- | ---------------- | :------: | -------------------- | ------- | -------------------------------------------------------------------- |
25
+ | ` elementType ` | ` String ` | ✅ | ` ['h1', 'h2', 'h3'] ` | - | - |
26
+ | ` children ` | ` PropTypes.node ` | ✅ (\* ) | - | - | - |
27
+ | ` intlMessage ` | ` intl message ` | ✅ (\* ) | - | - | An intl message object that will be rendered with ` FormattedMessage ` |
28
+ | ` title ` | ` String ` | - | - | - | Text to show in a tooltip on hover over the element |
29
+ | ` truncate ` | ` Bool ` | - | - | ` false ` | Option for truncate content in case the screen has small width |
30
+
31
+ > ` * ` : ` children ` is required only if ` intlMessage ` is not provided
29
32
30
33
The component further forwards all ` data- ` attributes to the underlying component.
31
34
@@ -50,10 +53,13 @@ Wraps the given text in the given HTML header `size`.
50
53
| ` elementType ` | ` String ` | ✅ | ` ['h4', 'h5'] ` | - |
51
54
| ` isBold ` | ` Boolean ` | - | - | ` false ` |
52
55
| ` tone ` | ` String ` | - | ` ['primary', 'secondary', 'information', 'positive', 'negative'] ` | - |
53
- | ` children ` | ` PropTypes.node ` | ✅ | - | - |
56
+ | ` children ` | ` PropTypes.node ` | ✅ (\* ) | - | - |
57
+ | ` intlMessage ` | ` intl message ` | ✅ (\* ) | - | - | An intl message object that will be rendered with ` FormattedMessage ` |
54
58
| ` title ` | ` String ` | - | - | - |
55
59
| ` truncate ` | ` Bool ` | - | - | ` false ` |
56
60
61
+ > ` * ` : ` children ` is required only if ` intlMessage ` is not provided
62
+
57
63
The component further forwards all ` data- ` attributes to the underlying component.
58
64
59
65
#### Where to use
@@ -86,15 +92,18 @@ Wraps the given text in a `<p>` element, for normal content.
86
92
87
93
#### Properties
88
94
89
- | Props | Type | Required | Values | Default |
90
- | ---------- | ---------------- | :------: | ----------------------------------------------------------------------------- | ------- |
91
- | ` isBold ` | ` Boolean ` | - | - | ` false ` |
92
- | ` isItalic ` | ` Boolean ` | - | - | ` false ` |
93
- | ` tone ` | ` String ` | - | ` ['primary', 'secondary', 'information', 'positive', 'negative', 'inverted'] ` | - |
94
- | ` children ` | ` PropTypes.node ` | ✅ | - | - |
95
- | ` title ` | ` String ` | - | - | - |
96
- | ` truncate ` | ` Bool ` | - | - | ` false ` |
97
- | ` isInline ` | ` Bool ` | - | - | ` false ` |
95
+ | Props | Type | Required | Values | Default |
96
+ | ------------- | ---------------- | :------: | ----------------------------------------------------------------------------- | ------- |
97
+ | ` isBold ` | ` Boolean ` | - | - | ` false ` |
98
+ | ` isItalic ` | ` Boolean ` | - | - | ` false ` |
99
+ | ` tone ` | ` String ` | - | ` ['primary', 'secondary', 'information', 'positive', 'negative', 'inverted'] ` | - |
100
+ | ` children ` | ` PropTypes.node ` | ✅ (\* ) | - | - |
101
+ | ` intlMessage ` | ` intl message ` | ✅ (\* ) | - | - | An intl message object that will be rendered with ` FormattedMessage ` |
102
+ | ` title ` | ` String ` | - | - | - |
103
+ | ` truncate ` | ` Bool ` | - | - | ` false ` |
104
+ | ` isInline ` | ` Bool ` | - | - | ` false ` |
105
+
106
+ > ` * ` : ` children ` is required only if ` intlMessage ` is not provided
98
107
99
108
The component further forwards all ` data- ` attributes to the underlying component.
100
109
@@ -116,15 +125,18 @@ properly style the text.
116
125
117
126
#### Properties
118
127
119
- | Props | Type | Required | Values | Default |
120
- | ---------- | ---------------- | :------: | ----------------------------------------------------------------------------- | ------- |
121
- | ` isBold ` | ` Boolean ` | - | - | ` false ` |
122
- | ` isItalic ` | ` Boolean ` | - | - | ` false ` |
123
- | ` tone ` | ` String ` | - | ` ['primary', 'secondary', 'information', 'positive', 'negative', 'warning''] ` | - |
124
- | ` children ` | ` PropTypes.node ` | ✅ | - | - |
125
- | ` title ` | ` String ` | - | - | - |
126
- | ` truncate ` | ` Bool ` | - | - | ` false ` |
127
- | ` isInline ` | ` Bool ` | - | - | ` false ` |
128
+ | Props | Type | Required | Values | Default |
129
+ | ------------- | ---------------- | :------: | ----------------------------------------------------------------------------- | ------- |
130
+ | ` isBold ` | ` Boolean ` | - | - | ` false ` |
131
+ | ` isItalic ` | ` Boolean ` | - | - | ` false ` |
132
+ | ` tone ` | ` String ` | - | ` ['primary', 'secondary', 'information', 'positive', 'negative', 'warning''] ` | - |
133
+ | ` children ` | ` PropTypes.node ` | ✅ (\* ) | - | - |
134
+ | ` intlMessage ` | ` intl message ` | ✅ (\* ) | - | - | An intl message object that will be rendered with ` FormattedMessage ` |
135
+ | ` title ` | ` String ` | - | - | - |
136
+ | ` truncate ` | ` Bool ` | - | - | ` false ` |
137
+ | ` isInline ` | ` Bool ` | - | - | ` false ` |
138
+
139
+ > ` * ` : ` children ` is required only if ` intlMessage ` is not provided
128
140
129
141
The component further forwards all ` data- ` attributes to the underlying component.
130
142
0 commit comments