@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
14 lines (13 loc) • 670 B
TypeScript
import * as React from 'react';
import { SxProp } from '../../system';
import { ColorScales } from '../../theme';
import { AsProp, ChildrenProp, HTMLAttributes, LiteralUnion } from '../../types';
export declare type CodeColors = ColorScales;
export declare type CodeVariants = 'outline' | 'solid' | 'subtle';
export interface CodeProps extends HTMLAttributes, AsProp, ChildrenProp, SxProp {
/** Color of the code element. */
color?: LiteralUnion<CodeColors>;
/** Variant of the code element. */
variant?: LiteralUnion<CodeVariants>;
}
export declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;