跳转到主要内容

Home Link

Block Relationships

Parent blocks (direct):
– core/navigation

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
label string — Role: content
opensInNewTab boolean false —
description string — —

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

  • textColor
  • customTextColor
  • backgroundColor
  • customBackgroundColor
  • fontSize
  • customFontSize
  • style

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

Source