Working repo: https://github.com/terriann/tab-group-block Forked from: https://github.com/amalter/tab_block Blog: https://www.amberalter.com/2021/11/20/building-a-gutenberg-block-for-tabbed-content/
WordPress Gutenberg block built with @wordpress/create-block starter kit. Written with ESNext standard and JSX support – build step required.
Block displays a simple tab layout using parent block [ 'tab-group/tabs' ]
and inner child blocks [ 'tab-group/tab' ]
.
- Cd into
/plugins/tab-group-block
directory and runnpm install
- Inside
/plugins/tab-group-block
directory you can run the following commands during development and build:npm start
Starts the build for developmentnpm run build
Builds the code for productionnpm run format
Formats filesnpm run lint:css
Lints CSS files.npm run lint:js
Lints JavaScript files.npm run packages-update
Updates WordPress packages to the latest version.
- Tab style inspiration
= 1.0.0 =
- Fix typos
- Refactor tab layout
- Change defauly tab styling
- BREAKING CHANGE - Renamed plugin, will cause the old plugin to be deactivated and will need to be activated again within WordPress admin.
- BREAKING CHANGE - block attributes for tab layout changed with no deprecation steps. Blocks will need to be recovered and tab layout reset for any non-default (left/side) tab groups
- BREAKING CHANGE - block name changed from
create-block/tabs
totab-group/tabs
, this is a non-recoverable change.
= 0.1.0 =
- Release