PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.2
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.2
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / blocks / shared / advancedTab.js

advancedTab.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.2, at src/blocks/shared/advancedTab.js

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from "@wordpress/i18n";
2 import { InputControl, Toggle } from "../../components";
3
4 export const VisibilityTab = ({ attributes, setAttributes }) => {
5 const { hideOnDesktop, hideOnTablet, hideOnMobile } = attributes;
6
7 return (
8 <div>
9 <Toggle
10 label={__("Hide on Desktop", "post-carousel")}
11 attributes={hideOnDesktop}
12 setAttributes={setAttributes}
13 attributesKey={"hideOnDesktop"}
14 pro={true}
15 />
16 <Toggle
17 label={__("Hide on Tablet", "post-carousel")}
18 attributes={hideOnTablet}
19 setAttributes={setAttributes}
20 attributesKey={"hideOnTablet"}
21 pro={true}
22 />
23 <Toggle
24 label={__("Hide on Mobile", "post-carousel")}
25 attributes={hideOnMobile}
26 setAttributes={setAttributes}
27 attributesKey={"hideOnMobile"}
28 pro={true}
29 />
30 </div>
31 );
32 };
33
34 export const AdvancedTab = ({ attributes, setAttributes }) => {
35 const { additionalCssClass } = attributes;
36
37 return (
38 <div>
39 <InputControl
40 label={__("Additional CSS Class(es)", "post-carousel")}
41 attributes={additionalCssClass}
42 attributesKey={"additionalCssClass"}
43 setAttributes={setAttributes}
44 flex={false}
45 inputType="string"
46 />
47 </div>
48 );
49 };
50