An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {
Layout,
LayoutHeader,
LayoutContent,
Card,
HStack,
} from '@astryxdesign/core/Layout';
import {Center} from '@astryxdesign/core/Center';
import {Heading} from '@astryxdesign/core/Text';
import {Button} from '@astryxdesign/core/Button';
export default function LayoutHeaderWithActions() {
return (
<Center width={400}>
<Layout
style={{width: '100%'}}
height="fill"
header={
<LayoutHeader hasDivider>
<HStack gap={2} vAlign="center" hAlign="between">
<Heading level={4}>Dashboard</Heading>
<Button label="New Item" variant="primary">
New Item
</Button>
</HStack>
</LayoutHeader>
}
content={
<LayoutContent>
<Card variant="muted" />
</LayoutContent>
}
/>
</Center>
);
}