Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: document isDefault option for block styles #10207

Merged
merged 1 commit into from Oct 8, 2018
Merged

Docs: document isDefault option for block styles #10207

merged 1 commit into from Oct 8, 2018

Commits on Sep 27, 2018

  1. Docs: document isDefault option for block styles

    Documents `isDefault` option when adding block style variations with `wp.blocks.registerBlockStyle()`
    
    [Example](https://github.com/WordPress/gutenberg/blob/3b6c167cab50e77c44b21c74e3dd2bdf8b890ff4/packages/block-library/src/separator/index.js#L20-L24).
    
    I'm building a custom block with different styles and I wanted one of the styles to be active by default. I had to go searching from code if such a feature exists.
    simison committed Sep 27, 2018
    Copy the full SHA
    0788036 View commit details
    Browse the repository at this point in the history