import * as React from 'react';
import { Grommet, Box, Menu, ThemeType } from 'grommet';
import { FormUp, FormDown } from 'grommet-icons';
// Type annotations can only be used in TypeScript files.
// Remove ': ThemeType' if you are not using TypeScript.
const customBreakpoints: ThemeType = {
global: {
breakpoints: {
small: {
value: 600,
edgeSize: {
small: '1px',
},
borderSize: {
small: '2px',
},
size: {
xxsmall: '24px',
},
},
medium: {
value: 900,
borderSize: {
small: '2px',
},
edgeSize: {
small: '1px',
},
size: {
xxsmall: '24px',
},
},
large: {
value: 3000,
borderSize: {
small: '2px',
},
edgeSize: {
small: '1px',
},
size: {
xxsmall: '24px',
},
},
xlarge: {
value: 3000,
borderSize: {
small: '2px',
},
edgeSize: {
small: '1px',
},
size: {
xxsmall: '24px',
},
},
},
},
menu: {
background: 'light-3',
icons: {
down: FormDown,
up: FormUp,
},
item: {
color: 'brand',
style: { fontFamily: 'Arial', fontWeight: 'bold' },
},
extend: `border: 3px solid gray`,
},
};
const ThemedMenu = () => {
return (
);
};
export const Themed = () => ;
Themed.parameters = {
chromatic: { disable: true },
};
export default {
title: 'Controls/Menu/Custom Themed/Themed',
};