List Item


An individual item within a list.

  • Name: core/list-item
  • Category: text
  • API Version: 3
  • Block Type: Static (saved in post content)

Block Relationships

Parent blocks (direct):
core/list

Allowed inner blocks:
core/list

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
placeholder string
content rich-text Source: rich-text. Selector: li. Role: content

Supports

Defined via the supports property in block.json.

CSS Selectors

Defined via the selectors property in block.json.

  • root: .wp-block-list > li
  • border: .wp-block-list:not(.wp-block-list .wp-block-list) > li

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:list-item -->
<li>Text &amp; Headings</li>
<!-- /wp:list-item -->

Source