An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {MoreMenu} from '@astryxdesign/core/MoreMenu';
import {
PencilIcon,
DocumentDuplicateIcon,
TrashIcon,
} from '@heroicons/react/24/outline';
export default function MoreMenuWithSections() {
return (
<MoreMenu
variant="secondary"
label="Document actions"
items={[
{
type: 'section',
title: 'Actions',
items: [
{label: 'Edit', icon: PencilIcon, onClick: () => {}},
{
label: 'Duplicate',
icon: DocumentDuplicateIcon,
onClick: () => {},
},
],
},
{
type: 'section',
title: 'Danger zone',
items: [{label: 'Delete', icon: TrashIcon, onClick: () => {}}],
},
]}
/>
);
}