switch-recipe.d.ts•1.18 kB
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { DistributiveOmit, Pretty } from '../types/system-types';
interface SwitchRecipeVariant {
/**
* @default "md"
*/
size: "sm" | "md" | "lg"
}
type SwitchRecipeVariantMap = {
[key in keyof SwitchRecipeVariant]: Array<SwitchRecipeVariant[key]>
}
type SwitchRecipeSlot = "root" | "label" | "control" | "thumb"
export type SwitchRecipeVariantProps = {
[key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]> | undefined
}
export interface SwitchRecipeRecipe {
__slot: SwitchRecipeSlot
__type: SwitchRecipeVariantProps
(props?: SwitchRecipeVariantProps): Pretty<Record<SwitchRecipeSlot, string>>
raw: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
variantMap: SwitchRecipeVariantMap
variantKeys: Array<keyof SwitchRecipeVariant>
splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>]
getVariantProps: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
}
export declare const switchRecipe: SwitchRecipeRecipe