An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {
DocumentDuplicateIcon,
PencilIcon,
ShareIcon,
TrashIcon,
} from '@heroicons/react/24/outline';
import {MoreMenu} from '@astryxdesign/core/MoreMenu';
export default function MoreMenuBottomSheet() {
return (
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
gap: '16px',
width: 'min(100%, 360px)',
padding: '16px',
border: '1px solid #d1d5db',
borderRadius: '12px',
}}>
<div style={{display: 'flex', flexDirection: 'column', gap: '4px'}}>
<strong>Quarterly plan</strong>
<span>Updated a few minutes ago</span>
</div>
<MoreMenu
presentation="bottom-sheet"
label="Project actions"
items={[
{
label: 'Rename project',
description: 'Update the project title.',
icon: PencilIcon,
onClick: () => {},
},
{
label: 'Duplicate project',
description: 'Create a copy in this workspace.',
icon: DocumentDuplicateIcon,
onClick: () => {},
},
{
label: 'Share project',
description: 'Invite people to collaborate.',
icon: ShareIcon,
onClick: () => {},
},
{
label: 'Delete project',
description: 'Move this project to the trash.',
icon: TrashIcon,
variant: 'destructive',
onClick: () => {},
},
]}
/>
</div>
);
}