Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
return (
<Fragment>
<InspectorControls>
<PanelBody title={ __( 'RSS Feed Settings' ) }>
<RangeControl
label={ __( 'Number of posts to be shown on the front-end' ) }
value={ numberOfPosts }
min='1'
max='50'
onChange={ onChangeNumber }
/>
<ToggleControl
label={ __('Display post description') }
checked={ showDescription }
onChange={ onChangeShowDescription }
/>
<ToggleControl
label={ __('Display post date') }
checked={ showDate}
onChange={ onChangeShowDate }
/>
</PanelBody>
</InspectorControls>
</Fragment>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.