A block that displays horizontal list items that can be selected to show their associated sections of content.
Author: | Troy Templeman (profile at wordpress.org) |
WordPress version required: | 6.0 |
WordPress version tested: | 6.4.3 |
Plugin version: | 0.1.1 |
Added to WordPress repository: | 29-03-2024 |
Last updated: | 03-04-2024 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://github.com/troytempleman/tabs-block-l... |
Total downloads: | 205 |
Click to start download |
Tabs Block Lite adds an accessible and responsive Tabs block to the block editor inserter that can be added to display horizontal list items that can be selected to show their associated sections of content.
Ideal for condensing longform or complex content. Also useful for reducing page scrolling.
Upgrade to Pro at https://troytempleman.com/wordpress/blocks/tabs-block/.
Features
- Accessible
- Responsive
- Inserter button for adding tabs
- Settings
- Block alignment
- Text alignment
- Item justification
- Styles
- Color
- Text
- Background
- Link
- Button text [Pro]
- Button text hover [Pro]
- Button text active [Pro]
- Button background [Pro]
- Button background hover [Pro]
- Header background active [Pro]
- Panel text [Pro]
- Panel background [Pro]
- Typography
- Font family
- Font size
- Appearance
- Line height
- Letter spacing
- Text decoration
- Letter case
- Dimensions
- Padding
- Margin
- Header padding [Pro]
- Header margin [Pro]
- Button padding [Pro]
- Button margin [Pro]
- Panel padding [Pro]
- Panel margin [Pro]
- Border [Pro]
- Button border [Pro]
- Button border hover [Pro]
- Button border active [Pro]
- Button border radius [Pro]
- Panel border [Pro]
- Panel border radius [Pro]
- Color
- Variations [Pro]
- Folder [Pro]
- Pills [Pro]
- Underline [Pro]
Demo
https://troytempleman.com/wordpress/blocks/tabs-block/
HTML
Tabs Block Lite will output a Tabs block with the following HTML structure:
<div class="wp-block-tt-tabs wp-block-tt-tabs-1 wp-block-tt-tabs-folder">
<ul class="wp-block-tt-tabs-header" role="tablist">
<li class="wp-block-tt-tab-header" role="presentation">
<button class="wp-block-tt-tab-header-button" id="wp-block-tt-tab-header-button-df856e31-e01a-46c3-bca3-be8041d3c416" aria-controls="wp-block-tt-tab-panel-df856e31-e01a-46c3-bca3-be8041d3c416" type="button" role="tab" aria-selected="true">
<span class="wp-block-tt-tab-header-button-text">Tab</span>
</button>
</li>
</ul>
<div class="wp-block-tt-tab-panel wp-block-tt-tab-panel-1” id="wp-block-tt-tab-panel-df856e31-e01a-46c3-bca3-be8041d3c416" role="tabpanel" tabindex="0" aria-labelledby="wp-block-tt-tab-header-button-df856e31-e01a-46c3-bca3-be8041d3c416">
<p>Panel</p>
</div>
</div>
Support
If you need help with Tabs Block Lite, please submit a ticket on the Support forum.
Donate
If you like Tabs Block Lite and would like to support it’s future development, how about buying me a coffee?
Contribute
If you would like to contribute to the development of Tabs Block Lite, the repository is located on GitHub.
License
Tabs Block Lite is released under the GNU General Public License, version 2 (GPLv2).
Requirements
- WordPress 6.0 or greater
- PHP version 7.4 or greater
- MySQL version 5.7 or greater or MariaDB version 10.3 or greater.
Credits
- W3C Tabs Pattern
- Tabs: It’s Complicated™
- Tabbed Interfaces
- Building accessible user interface tabs in JavaScript
- WordPress Gutenberg Tabs
- Building a Gutenberg Block for Tabbed Content
Screenshots
FAQ
ChangeLog