UNPKG

@hakuna-matata-ui/styled-system

Version:

Style function for css-in-js building component libraries

50 lines (47 loc) 1.18 kB
import * as CSS from "csstype" import { Config } from "../utils/prop-config" import { t, Token, Length, transforms } from "../utils" export const interactivity: Config = { appearance: true, cursor: true, resize: true, userSelect: true, pointerEvents: true, outline: { transform: transforms.outline }, outlineOffset: true, outlineColor: t.colors("outlineColor"), } export interface InteractivityProps { /** * The CSS `appearance` property */ appearance?: Token<CSS.Property.Appearance> /** * The CSS `user-select` property */ userSelect?: Token<CSS.Property.UserSelect> /** * The CSS `pointer-events` property */ pointerEvents?: Token<CSS.Property.PointerEvents> /** * The CSS `resize` property */ resize?: Token<CSS.Property.Resize> /** * The CSS `cursor` property */ cursor?: Token<CSS.Property.Cursor> /** * The CSS `outline` property */ outline?: Token<CSS.Property.Outline<Length>> /** * The CSS `outline-offset` property */ outlineOffset?: Token<CSS.Property.OutlineOffset<Length>> /** * The CSS `outline-color` property */ outlineColor?: Token<CSS.Property.Color, "colors"> }