UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

26 lines (25 loc) 842 B
import { Theme } from '../../../domain/theme'; import { Props as CardProps } from '../Card/Card.types'; import { Props as RadioProps } from '../Radio/Radio.types'; /** * Props for the RadioCard component. * Combines Card styling with Radio functionality. * * @example * ```tsx * <RadioCard * name="plan" * value="pro" * label="Pro Plan" * description="$29/month" * checked={selected === 'pro'} * onChange={(value) => setSelected(value)} * /> * ``` */ export type Props = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName' | 'description' | 'descriptionClassName'> & { labelWrapperClassName?: string; theme?: Theme; }; /** @deprecated Use Props instead */ export type RadioCardProps = Props;