import React from "react"; import { useStyletron } from "baseui"; import { Grid, Cell } from "baseui/layout-grid"; export default function Example() { return ( ({ borderLeftWidth: "1px", borderRightWidth: "1px", borderTopWidth: "1px", borderBottomWidth: "1px", borderLeftStyle: "solid", borderTopStyle: "solid", borderRightStyle: "solid", borderBottomStyle: "solid", borderLeftColor: `${$theme.colors.positive400}`, borderTopColor: `${$theme.colors.positive400}`, borderRightColor: `${$theme.colors.positive400}`, borderBottomColor: `${$theme.colors.positive400}`, }), }, }} > 1 2 3 ({ outline: `solid 1px ${$theme.colors.negative400}`, }), }, }} > 4 ); } const Outer: React.FunctionComponent<{}> = ({ children }) => { const [css, theme] = useStyletron(); return (
{children}
); }; const Inner: React.FunctionComponent<{}> = ({ children }) => { const [css, theme] = useStyletron(); return (
{children}
); };