@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
15 lines (14 loc) • 631 B
JavaScript
import * as React from 'react';
import { Box } from '@workday/canvas-kit-react/layout';
const baseStyles = {
color: 'blackPepper500',
display: 'inline-block',
margin: 'xxs',
minHeight: 'xl',
minWidth: '8rem',
padding: 'xs',
};
export const Depth = () => (React.createElement(React.Fragment, null,
React.createElement(Box, { backgroundColor: "cinnamon300", depth: 1, ...baseStyles }, "Depth 1"),
React.createElement(Box, { backgroundColor: "sourLemon300", depth: 2, ...baseStyles }, "Depth 2"),
React.createElement(Box, { backgroundColor: "blueberry300", depth: 3, ...baseStyles }, "Depth 3")));