block

T2 card with custom content

Repo Release Link Client Features Developer
repo 16/12-24 link Talgo Invest / Melby cardsinnerBlocks Ann Christin

Functionality

Needed to set up a custom card with text, buttons, optional background image and optional wrapper link.

You can define a wrapper URL where the whole “box” becomes a link. Or you can skip this and just add a button innerblock and make that the link instead. Image background is optional.

Block has 100% translation.

Editor

Block has BlockControls for setting URL (wrapper URL), and select image. Otherwise normal innerblocks for card content.

Notes

A little buggy/weird with BlockControls for both URL and image. When URL is set, it will always be displayed, which can interfere a bit with replace image popover, and content editing (for small screens).