Skip to content

Commit b017b44

Browse files
committed
Update Callout docs on new docs site
1 parent 8f99905 commit b017b44

3 files changed

Lines changed: 30 additions & 4 deletions

File tree

packages/eui/i18ntokens.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,14 @@
347347
"highlighting": "string",
348348
"loc": {
349349
"start": {
350-
"line": 89,
350+
"line": 95,
351351
"column": 8,
352-
"index": 2542
352+
"index": 2565
353353
},
354354
"end": {
355-
"line": 92,
355+
"line": 98,
356356
"column": 9,
357-
"index": 2647
357+
"index": 2670
358358
}
359359
},
360360
"filepath": "src/components/call_out/call_out.tsx"

packages/eui/src/components/call_out/__snapshots__/call_out.test.tsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ exports[`EuiCallOut is rendered 1`] = `
1414
</div>
1515
`;
1616

17+
exports[`EuiCallOut props color accent is rendered 1`] = `
18+
<div
19+
class="euiPanel euiPanel--accent euiPanel--paddingMedium euiCallOut euiCallOut--accent emotion-euiPanel-none-m-accent-euiCallOut"
20+
/>
21+
`;
22+
1723
exports[`EuiCallOut props color danger is rendered 1`] = `
1824
<div
1925
class="euiPanel euiPanel--danger euiPanel--paddingMedium euiCallOut euiCallOut--danger emotion-euiPanel-none-m-danger-euiCallOut"

packages/website/docs/components/display/callout.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,26 @@ export default () => (
115115
);
116116
```
117117

118+
## Accent
119+
120+
Use this callout to announce new capabilities. For example if you want to highlight a feature.
121+
122+
```tsx interactive
123+
import React from 'react';
124+
import { EuiCallOut, EuiLink } from '@elastic/eui';
125+
126+
export default () => (
127+
<EuiCallOut title="Shiny new thing has arrived" color="accent" iconType="cheer">
128+
<p>
129+
Dull thing can now be forgotten.{' '}
130+
<EuiLink external href="#">
131+
Learn more
132+
</EuiLink>.
133+
</p>
134+
</EuiCallOut>
135+
);
136+
```
137+
118138
## Dismissible callouts
119139

120140
To render a cross icon in the top right hand corner, pass an `onDismiss` callback that handles conditionally rendering your callout.

0 commit comments

Comments
 (0)