PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.0
GenerateBlocks v2.0.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / components / styles-onboarder / StylesOnboarder.jsx
generateblocks / src / components / styles-onboarder Last commit date
StylesOnboarder.jsx 1 year ago
StylesOnboarder.jsx
28 lines
1 import { __ } from '@wordpress/i18n';
2 import { createInterpolateElement } from '@wordpress/element';
3 import { styles } from '@wordpress/icons';
4
5 import { OnboardNotice } from '..';
6
7 function Icon() {
8 return (
9 <span className="gb-inline-icon">{ styles }</span>
10 );
11 }
12
13 export function StylesOnboarder() {
14 return (
15 <OnboardNotice
16 title={ __( 'Styles', 'generateblocks' ) }
17 onboardingKey={ 'styles_panel' }
18 >
19 <p>{ createInterpolateElement(
20 __( 'Block styles can be found by clicking on the <Styles /> icon.', 'generateblocks' ),
21 {
22 Styles: <Icon />,
23 }
24 ) }</p>
25 </OnboardNotice>
26 );
27 }
28