Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): <header> reference #1105

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions docs/reference_header.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ sidebar_label: <header>

The `<header>` element represents the header of a screen in the app. Typically, the header shows a title and navigation elements

An example header on a screen with a scrolling body.
An example header on a screen with a scrolling view.

```xml
<screen>
<header style="MyHeader">
<text href="#">Back</text>
<text>My App</text>
</header>
<body style="Flex" scroll="true">
<view style="FlexHorizontal">
<text>Basic view</text>
<text>With Horizontal Layout</text>
<body style="Flex">
<header style="MyHeader">
<text href="#">Back</text>
<text>My App</text>
</header>
<view scroll="true" style="Flex">
<view style="FlexHorizontal">
<text>Basic view</text>
<text>With Horizontal Layout</text>
</view>
</view>
</body>
</screen>
```

## Structure

A `<header>` element can only appear as a direct child of a `<screen>` element.

## Attributes

- [Behavior attributes](#behavior-attributes)
Expand Down