@cerberus-design/styled-system
Version:
Cerberus Design System Panda-CSS styled-system.
31 lines (25 loc) • 1.04 kB
TypeScript
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { DistributiveOmit, Pretty } from '../types/system-types';
interface CheckboxVariant {
/**
* @default "sm"
*/
size: "sm" | "md"
}
type CheckboxVariantMap = {
[key in keyof CheckboxVariant]: Array<CheckboxVariant[key]>
}
export type CheckboxVariantProps = {
[key in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[key]> | undefined
}
export interface CheckboxRecipe {
__type: CheckboxVariantProps
(props?: CheckboxVariantProps): Pretty<Record<"root" | "label" | "control" | "indicator" | "group", string>>
raw: (props?: CheckboxVariantProps) => CheckboxVariantProps
variantMap: CheckboxVariantMap
variantKeys: Array<keyof CheckboxVariant>
splitVariantProps<Props extends CheckboxVariantProps>(props: Props): [CheckboxVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxVariantProps>>]
getVariantProps: (props?: CheckboxVariantProps) => CheckboxVariantProps
}
export declare const checkbox: CheckboxRecipe