Button Block
A call-to-action button: a label, a required link and a horizontal alignment.Extends
| id The block's permanent identity inside its document. | inherited | |||||||||||||
| revision Output only: CID of the last Change that modified this block. | optional · inherited | |||||||||||||
| type Block type tag, always `Button`. | Button | optional | ||||||||||||
| text Label shown on the button. | optional | |||||||||||||
| link Where the button goes — an `hm://` or web URL. | ||||||||||||||
| attributes Button settings and parent-layout attributes. | optional | |||||||||||||
other fields: | ||||||||||||||
A button block is a call-to-action button. text is the label, and link (required) is where it goes: an hm:// or web URL, see URLs. Attributes: name (an alternative label), alignment (a button alignment: flex-start, center or flex-end), and the parent-layout pair childrenType and columnCount.
See also
block/button-alignment: where the button sits.
block/embed: show a linked document in place.
block/core: all built-in block types.
Blocks: the block model.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App