Page

class seamless.components.Page

Inherits from Component.

Methods

__init__(self, title=None, html_props=None, head_props=None, body_props=None)
Parameters:
  • title (string) – The page’s title

  • html_props (dict) – The props to insert inside the html tag
    default: { "lang": "en" }

  • head_props (dict) – The props to insert inside the head tag
    default: {}

  • body_props (dict) – The props to insert inside the body tag
    default: { "dir": "ltr" }

head(self) Iterable[ChildType]

The children that will be inside the head tag.

Return type:

ChildrenType

body(self) Iterable[ChildType]

The children that will be inside the body tag.

Return type:

ChildrenType