@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (16 loc) • 417 B
JavaScript
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { ToggleControl } from '@wordpress/components';
export function QueryPaginationLabelControl( { value, onChange } ) {
return (
<ToggleControl
__nextHasNoMarginBottom
label={ __( 'Show label text' ) }
help={ __( 'Make label text visible, e.g. "Next Page".' ) }
onChange={ onChange }
checked={ value === true }
/>
);
}