An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {useMemo} from 'react';
import {
CommandPalette,
CommandPaletteFooter,
} from '@astryxdesign/core/CommandPalette';
import {createStaticSource} from '@astryxdesign/core/Typeahead';
export default function CommandPaletteFooterBasic() {
const source = useMemo(
() =>
createStaticSource([
{id: 'new-file', label: 'New File'},
{id: 'open-recent', label: 'Open Recent'},
{id: 'save-all', label: 'Save All'},
]),
[],
);
return (
<CommandPalette
isOpen
isInline
onOpenChange={() => {}}
searchSource={source}
footer={<CommandPaletteFooter />}
/>
);
}