Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
registerBlockType('gutenberg-widget-block/rss-feed', {
title: 'RSS Feed',
icon: 'rss',
category: 'widgets',
attributes: {
numberOfPosts: {
type: 'integer',
default: 10
},
url: {
type: 'string'
},
showDescription: {
type: 'boolean',
default: false
},
showDate: {
type: 'boolean',
default: false
}
},
edit: withState( { validated: false, error: false } ) ( edit ),
save: save,
});
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.