generateblocks
/
src
/
extend
/
inspector-control
/
controls
/
background-panel
/
components
/
repeat.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
repeat.js
19 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { SelectControl } from '@wordpress/components'; |
| 3 | |
| 4 | export default function Repeat( { value, onChange } ) { |
| 5 | return ( |
| 6 | <SelectControl |
| 7 | label={ __( 'Repeat', 'generateblocks' ) } |
| 8 | value={ value } |
| 9 | options={ [ |
| 10 | { label: 'no-repeat', value: 'no-repeat' }, |
| 11 | { label: 'repeat', value: 'repeat' }, |
| 12 | { label: 'repeat-x', value: 'repeat-x' }, |
| 13 | { label: 'repeat-y', value: 'repeat-y' }, |
| 14 | ] } |
| 15 | onChange={ onChange } |
| 16 | /> |
| 17 | ); |
| 18 | } |
| 19 |