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