import React from 'react'; import { Box, Grommet, Spinner } from 'grommet'; import { Node } from 'grommet-icons'; import { ThemeType } from 'grommet/themes'; // Type annotations can only be used in TypeScript files. // Remove ': ThemeType' if you are not using Typescript. const themeWithAnimation: ThemeType = { spinner: { icon: Node, container: { color: 'accent-2', align: 'center', justify: 'center', size: 'large', animation: { type: 'rotateLeft', duration: 900 }, }, }, }; // Type annotations can only be used in TypeScript files. // Remove ': ThemeType' if you are not using Typescript. const themeWithAnimatedIcon: ThemeType = { spinner: { icon: ( ), container: { size: 'large', animation: undefined }, }, }; export const ThemedIcon = () => ( <> ); ThemedIcon.storyName = 'Themed Icon'; export default { title: 'Visualizations/Spinner/Custom Themed/Themed Icon', };