-
Couldn't load subscription status.
- Fork 1
Open
Description
The visual builder requires the data-epi-block-id attribute for proper component rendering and interaction, but there is currently no way to retrieve the block/content key from the Infer type.
Expected Behavior
We should be able to retrieve and use the block ID like this:
export default function FAQ({ opti }: FAQProps) {
const { pa } = getPreviewUtils(opti);
return (
<section
className="about-us"
data-epi-block-id={opti.key} // ← This should be available
>
<h2>{opti.heading}</h2>
<div className="about-us-content">
<div className="about-us-text">
<div
{...pa('body')}
dangerouslySetInnerHTML={{ __html: opti.body?.html ?? '' }}
/>
</div>
</div>
</section>
);
}
Metadata
Metadata
Assignees
Labels
No labels