import React from "react"; import { Story, Meta } from "@storybook/react/types-6-0"; import { useStyletron } from "baseui"; import Grid, { GridProps } from "./Grid"; import { Cell } from "baseui/layout-grid"; import { H3 } from "baseui/typography"; import Spacer from "../spacer/Spacer"; import { ThemeProvider } from "../ThemeProvider"; export default { title: "Components/Content/Grid", component: Grid, } as Meta; const Template: Story = (args) => { return (

We've 12 available cells/columns

1 2 3 4 5 6 7 8 9 10 11 12

You can give the cells/columns an array for repsponsiveness

1 2 3 4
); }; const Outer: React.FC<{}> = ({ children }) => { const [css, theme] = useStyletron(); return (
{children}
); }; const Inner: React.FC<{}> = ({ children }) => { const [css, theme] = useStyletron(); return (
{children}
); }; export const Default = Template.bind({});