PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.1.5
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.1.5
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / admin / components / SettingWithInput.js

SettingWithInput.js in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 3.1.5, at admin/components/SettingWithInput.js

24 lines 943 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react'
2
3 const SettingWithInput = ({ title, description, value, handleChange, name, handleBlur, success }) => {
4 return (
5 <div className="blockspare__settings">
6 <div className="blockspare__settings-info">
7 <h3 className="blockspare__settings-title">{title}</h3>
8 <div className="blockspare__input-wrap">
9 <input className="blockspare-admin__input-field" type="text" name={name} value={value} onChange={handleChange} onBlur={handleBlur} />
10 <span className="blockspare-admin__input-field--value-type">
11 px
12 </span>
13 {success === true &&
14 <p>success</p>
15 }
16 </div>
17 </div>
18 <p className="blockspare__settings-description">{description}</p>
19 </div>
20 )
21 }
22
23 export default SettingWithInput
24