generateblocks
/
src
/
extend
/
inspector-control
/
controls
/
background-panel
/
components
/
attachment.js
generateblocks
/
src
/
extend
/
inspector-control
/
controls
/
background-panel
/
components
Last commit date
attachment.js
3 years ago
background-color-overlay.js
3 years ago
background-options.js
2 years ago
image-opacity.js
3 years ago
image-size.js
3 years ago
image-url.js
3 years ago
position.js
3 years ago
repeat.js
3 years ago
selector.js
3 years ago
size.js
3 years ago
use-inline-style.js
3 years ago
attachment.js
18 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { SelectControl } from '@wordpress/components'; |
| 3 | |
| 4 | export default function Attachment( { value, onChange } ) { |
| 5 | return ( |
| 6 | <SelectControl |
| 7 | label={ __( 'Attachment', 'generateblocks' ) } |
| 8 | value={ value } |
| 9 | options={ [ |
| 10 | { label: 'scroll', value: '' }, |
| 11 | { label: 'fixed', value: 'fixed' }, |
| 12 | { label: 'local', value: 'local' }, |
| 13 | ] } |
| 14 | onChange={ onChange } |
| 15 | /> |
| 16 | ); |
| 17 | } |
| 18 |