An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {
CommandPaletteList,
CommandPaletteGroup,
CommandPaletteItem,
} from '@astryxdesign/core/CommandPalette';
export default function CommandPaletteGroupBasic() {
return (
<CommandPaletteList>
<CommandPaletteGroup heading="Navigation">
<CommandPaletteItem value="home" onSelect={() => {}}>
Go to Home
</CommandPaletteItem>
<CommandPaletteItem value="dashboard" onSelect={() => {}}>
Go to Dashboard
</CommandPaletteItem>
</CommandPaletteGroup>
<CommandPaletteGroup heading="Actions">
<CommandPaletteItem value="new-file" onSelect={() => {}}>
New File
</CommandPaletteItem>
<CommandPaletteItem value="save-all" onSelect={() => {}}>
Save All
</CommandPaletteItem>
</CommandPaletteGroup>
</CommandPaletteList>
);
}