deprecated
5 years ago
block.json
4 years ago
edit.js
5 years ago
icon.svg
5 years ago
index.js
4 years ago
index.php
4 years ago
save.js
5 years ago
style.scss
4 years ago
save.js
22 lines
| 1 | import { RichText, InnerBlocks, useBlockProps } from '@wordpress/block-editor'; |
| 2 | |
| 3 | export default function save({ attributes }) { |
| 4 | const { heading } = attributes; |
| 5 | return ( |
| 6 | <dl |
| 7 | {...useBlockProps.save({ |
| 8 | className: `vk_faq [accordion_trigger_switch]`, |
| 9 | })} |
| 10 | > |
| 11 | <RichText.Content |
| 12 | tagName="dt" |
| 13 | className={'vk_faq_title'} |
| 14 | value={heading} |
| 15 | /> |
| 16 | <dd className={`vk_faq_content`}> |
| 17 | <InnerBlocks.Content /> |
| 18 | </dd> |
| 19 | </dl> |
| 20 | ); |
| 21 | } |
| 22 |