import * as menu from '@remix-run/ui/menu' import { css } from 'remix/component' export default function ExampleMenu() { return () => (
New file
Open file
Export as
PDF
PNG
SVG
Print
) } const surfaceStyle = css({ colorScheme: 'light dark', margin: 0, padding: '6px', minWidth: '220px', maxWidth: 'calc(100vw - 32px)', border: '1px solid light-dark(#e0e0e6, #393940)', borderRadius: '10px', background: 'light-dark(#fff, #1b1b20)', color: 'var(--text)', boxShadow: '0 12px 32px #00000024', font: '14px/1.6 "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif', opacity: 0, transition: 'opacity 140ms ease, display 140ms allow-discrete, overlay 140ms allow-discrete', '&[data-close-animation="none"]': { transition: 'none', }, '&:popover-open': { opacity: 1, '@starting-style': { opacity: 0, }, }, '@media (prefers-reduced-motion: reduce)': { transition: 'none', }, }) const listStyle = css({ display: 'grid', gap: '2px', maxHeight: '240px', overflow: 'auto', outline: 0, }) const itemStyle = css({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '20px', padding: '9px 12px', borderRadius: '6px', outline: 0, cursor: 'default', '&[data-highlighted]': { background: 'light-dark(#eeeef3, #303038)', }, '&[data-menu-flash]': { background: 'light-dark(#dedee7, #454550)', color: 'light-dark(#202027, #eeeef2)', }, '&[aria-disabled]': { opacity: 0.4, }, }) function ChevronDownIcon() { return () => ( ) } function ChevronRightIcon() { return () => ( ) }