@cerberus-design/react
Version:
The Cerberus Design React component library.
1 lines • 1.13 kB
Source Map (JSON)
{"version":3,"sources":["../../src/types.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { SystemStyleObject } from 'styled-system/types'\n\nexport interface WithCss {\n /**\n * The CSS styles to apply to the component.\n * Can be a single style object or an array of style objects.\n */\n css?: SystemStyleObject | SystemStyleObject[]\n /**\n * The strict CSS styles to apply to the component. This will override any\n * other styles applied to the component and is only recommended for advanced\n * use cases.\n *\n * In most cases, you should use the `css` prop instead.\n */\n style?: CSSProperties | Record<string, number | string>\n /**\n * If true, the component will render as a child as the provided element\n * passing all the given props to the child.\n */\n asChild?: boolean\n /**\n * The class name to apply to the component.\n * Can be a single class name or an array of class names.\n */\n className?: string\n}\n\n// types\n\nexport type Positions = 'top' | 'right' | 'bottom' | 'left'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}