UNPKG

@workday/canvas-kit-docs

Version:

Documentation components of Canvas Kit components

13 lines (12 loc) 853 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box } from '@workday/canvas-kit-react/layout'; const baseStyles = { color: 'blackPepper500', margin: 'xxs', height: 'xl', width: '8rem', padding: 'xs', }; export const Position = () => { return (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", left: 0, position: "absolute", top: "calc(50% - 20px)", zIndex: 1, textAlign: "center", ...baseStyles, children: "Left" }), _jsx(Box, { backgroundColor: "sourLemon300", left: `calc(50% - 4rem)`, position: "absolute", top: "calc(50% - 20px)", zIndex: 2, textAlign: "center", ...baseStyles, children: "Center" }), _jsx(Box, { backgroundColor: "blueberry300", position: "absolute", right: 0, top: "calc(50% - 20px)", zIndex: 3, textAlign: "center", ...baseStyles, children: "Right" })] })); };