import React from "react"; import { PProps } from "../typography"; import "./bool.scss"; export type BoolProps = React.ComponentProps<"span"> & { /** The value. */ value: boolean; /** Whether to use a "decorative" component instead of `
` if applicable. */
decorate?: boolean;
/** Show an icon, even if value is false. */
explicit?: boolean;
/** The accessible label when value is truthy. */
labelTrue?: string;
/** The accessible label when value is falsy. */
labelFalse?: string;
pProps?: PProps;
/** Whether to omit HTML and give raw output. */
raw?: boolean;
};
/**
* Bool component,
*
* If `decorate` is `true: shows a checkmark if `value` is `true`. If `value` is `false` the icon is hidden, unless
* `explicit` is `true`.
*
* If `decorate` is `false: shows a human-readable representation of `value`.
*/
export declare const Bool: React.FC