Skip to content
View Markdown

Screen ​

The title and toolbar configuration for the current screen.

tsx
import { Screen } from '@satinhq/kit'

Example ​

Full example
tsx
import { LabeledContent, List, Screen, Section } from '@satinhq/kit'

function Example() {
  return (
    <Screen title="Trip" subtitle="April">
      <List id="example">
        <Section>
          <LabeledContent label="Destination" value="Kyoto" />
        </Section>
      </List>
    </Screen>
  )
}

Set the title ​

Use title to override the route title. subtitle appears under it.

Choose title display ​

Use titleDisplay for large, inline, inlineLarge or none. The route can set the initial value before the screen renders.

API ​

Scroll horizontally to read every column.

PropTypeDescription
titlestringOverrides the route title.
subtitlestringOptional subtitle.
titleDisplayTitleDisplayModeTitle presentation.
searchableSearchableOptional screen search.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.