@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
24 lines (23 loc) • 1.02 kB
TypeScript
import type { PropsFor } from "../../types.js";
export type CheckboxCardType = CheckboxCardProps["type"];
export type CheckboxCardProps = PropsFor<"input", {
/** CheckboxCard type: `checkbox` (default), 'switch', or `radio` */
type?: "checkbox" | "radio" | "switch";
/** Place the checkbox/radio/switch icon "left" or "right" (default) */
align?: "left" | "right";
/** Label text or content shown as title */
label: React.ReactNode;
/** Optional header content */
header?: React.ReactElement;
/** Style for internal `<input>` element */
inputStyle?: React.CSSProperties;
/** CSS class name(s) for internal `<input>` element */
inputClassName?: string;
/** Indeterminate state, overrides checked styling */
indeterminate?: boolean;
}>;
/**
* A card rendered as a Checkbox or Radio button
*/
declare const CheckboxCard: import("react").ForwardRefExoticComponent<CheckboxCardProps & import("react").RefAttributes<HTMLInputElement>>;
export default CheckboxCard;