import * as React from 'react'; import hex from '../../colors/hex'; import Flex from '../../flex/Flex'; import Text from '../../text/Text'; import Button from '../../buttons/Button'; import Transition from '../Transition'; const fillModes = ['none', 'forwards', 'backwards', 'both'] as const; const shrinkFadeEffect = { initial: { opacity: 0, }, animate: { opacity: 1, transform: { scale: 0.25, }, duration: 1000, easing: 'entry', }, exit: { opacity: 0, duration: 1000, easing: 'exit', }, } as const; export const FillMode = () => { const [active, setActive] = React.useState(false); return ( {fillModes.map(mode => ( ))} Activating transition spawns a shrinking circle inside the parent container with a 1s delay. ); }; const Circle = () => (
); const Container = ({ description, children, }: { description: string; children: React.ReactNode; }) => (
{children}
{description}
); FillMode.parameters = { layout: 'centered', };