File tree Expand file tree Collapse file tree
src/components/call_out/__snapshots__
website/docs/components/display Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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+
1723exports [` 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"
Original file line number Diff line number Diff 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
120140To render a cross icon in the top right hand corner, pass an ` onDismiss ` callback that handles conditionally rendering your callout.
You can’t perform that action at this time.
0 commit comments