UNPKG

@wordpress/block-editor

Version:
26 lines (23 loc) 515 B
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { ToolbarButton } from '@wordpress/components'; import { fullscreen } from '@wordpress/icons'; function BlockFullHeightAlignmentControl( { isActive, label = __( 'Full height' ), onToggle, isDisabled, } ) { return ( <ToolbarButton isActive={ isActive } icon={ fullscreen } label={ label } onClick={ () => onToggle( ! isActive ) } disabled={ isDisabled } /> ); } export default BlockFullHeightAlignmentControl;