/** One button in the grid menu. */ export interface SyGridMenuItem { /** Stable key; also used for tracking. */ id: string; /** Accessible name; shown under the icon when `showLabels` is on. */ label: string; /** * SVG URL, or a built-in / registered icon name ('sy-cart'). For a CSS-class icon ('pi pi-moon') * put the element in the light DOM with `slot="icon-"` instead; the class needs document CSS. */ icon?: string; /** Image URL drawn in full color instead of an icon (photos, logos, avatars). */ image?: string; /** Called when the item is chosen, before `itemclick` is dispatched. */ action?: (item: SyGridMenuItem) => void; disabled?: boolean; /** Per-item background, hover background and icon/text color (any CSS color). */ color?: string; hoverColor?: string; iconColor?: string; } /** `grid` places items in rows and columns around the toggle; `radial` places them on a ring. */ export type SyGridMenuLayout = 'grid' | 'radial'; /** Item corner style. */ export type SyGridMenuShape = 'square' | 'rounded' | 'circle'; /** * Open/close motion. `burst` flies items out from the center with a spin, `scale` grows them in place, * `fade` only fades, `none` switches instantly. Reduced-motion users always get `none`. */ export type SyGridMenuAnimation = 'burst' | 'scale' | 'fade' | 'none';