@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
15 lines (14 loc) • 890 B
JavaScript
import * as React from 'react';
import { Box } from '@workday/canvas-kit-react/layout';
import { colors } from '@workday/canvas-kit-react/tokens';
const baseStyles = {
color: 'blackPepper500',
display: 'inline-block',
margin: 'xxs',
minHeight: 'xl',
padding: 'xs',
};
export const Other = () => (React.createElement(Box, null,
React.createElement(Box, { backgroundColor: "cinnamon300", cursor: "grab", outline: `2px dashed ${colors.cinnamon300}`, outlineOffset: "2px", ...baseStyles }, "Cursor Grab"),
React.createElement(Box, { backgroundColor: "sourLemon300", cursor: "text", outline: `2px dashed ${colors.sourLemon300}`, outlineOffset: "2px", ...baseStyles }, "Cursor Text"),
React.createElement(Box, { backgroundColor: "blueberry300", cursor: "wait", outline: `2px dashed ${colors.blueberry300}`, outlineOffset: "2px", ...baseStyles }, "Cursor Wait")));