import { css } from '@fuel-ui/css';
import { Box } from '../Box';
import { Stack } from '../Box/Stack';
import { Button } from '../Button';
import { Grid } from '../Grid';
import { toast } from './Toast';
export default {
title: 'Overlay/Toast',
parameters: {
layout: 'fullscreen',
},
};
export const Usage = () => (
);
Usage.parameters = {
layout: 'centered',
};
const POSITIONS_TOP = [
{ value: 'top-left', label: 'Top left' },
{ value: 'top-center', label: 'Top center' },
{ value: 'top-right', label: 'Top right' },
];
const POSITIONS_BOTTOM = [
{ value: 'bottom-left', label: 'Bottom left' },
{ value: 'bottom-center', label: 'Bottom center' },
{ value: 'bottom-right', label: 'Bottom right' },
];
export const Positions = () => (
{POSITIONS_TOP.map((pos) => (
))}
{POSITIONS_BOTTOM.map((pos) => (
))}
);
Positions.parameters = {
layout: 'centered',
};
export const Custom = () => (
);
Custom.parameters = {
layout: 'centered',
};
const styles = {
custom: css({
py: '$2',
px: '$6',
borderRadius: '$full',
backgroundColor: '$intentsPrimary10',
color: 'white',
}),
};