Components
PageHeader
v1.0.0Page title, description, and actions header used by scaffolded admin pages.
Import
import { PageHeader } from '@meteorack/sdk-react';How To Use It
- Render it once near the top of a module page to establish the current view, supporting copy, and page-level actions.
- Pass primary actions through the actions prop so controls stay visually tied to the page title.
Props
title: stringMain heading for the page.
description?: stringOptional supporting text under the title.
actions?: ReactNodeOptional actions area aligned to the right side of the header.
className?: stringOptional class name for the header wrapper.
Example
PageHeader.tsx
import { PageHeader, Card, Button } from '@meteorack/sdk-react';
export function MainPage() {
return (
<>
<PageHeader
title="My Module"
description="Module overview and controls"
actions={<Button variant="primary">Save</Button>}
/>
<Card>
<Button variant="primary">Run action</Button>
</Card>
</>
);
}