About
General-purpose toolbar container with three content slots and roving tabindex. Astryx by Meta. Source: https://astryx.atmeta.com/components/Toolbar
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Toolbar to your project and fits it to your theme.
Code
How Astryx Toolbar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-toolbar.tsx. */
import '@/components/ui/astryx-toolbar-utils/astryx-preview.css';
import {useState, type CSSProperties} from 'react';
import {Toolbar} from '@/components/ui/astryx-toolbar';
import {Button} from '@astryxdesign/core/Button';
import {TabList, Tab} from '@astryxdesign/core/TabList';
import {Card} from '@astryxdesign/core/Card';
import {useToast} from '@astryxdesign/core/Toast';
const card: CSSProperties = {
width: '100%',
maxWidth: 500,
};
function OfficialSample() {
const showToast = useToast();
const [tab, setTab] = useState('overview');
return (
<Card style={card}>
<Toolbar
label="Section navigation"
dividers={['bottom']}
startContent={
<TabList value={tab} onChange={setTab}>
<Tab value="overview" label="Overview" />
<Tab value="analytics" label="Analytics" />
<Tab value="settings" label="Settings" />
</TabList>
}
endContent={
<Button
label="New item"
onClick={() =>
showToast({body: 'Demo: a new item would be created here'})
}
/>
}
/>
</Card>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" data-centered style={{maxWidth: 520}}>
<OfficialSample />
</div>
</div>
);
}















