Skip to content

Divider

Overview

Divider is used to provide visual separation and is based on the Angular Material divider component.

Examples

import mesop as me


@me.page(
  security_policy=me.SecurityPolicy(
    allowed_iframe_parents=["https://google.github.io"]
  ),
  path="/divider",
)
def app():
  me.text(text="before")
  me.divider()
  me.text(text="after")

API

divider

Creates a Divider component.

PARAMETER DESCRIPTION
key

The component key.

TYPE: str | None DEFAULT: None

inset

Whether the divider is an inset divider.

TYPE: bool DEFAULT: False