import * as React from 'react'; import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; export type RadioTickBoxProps = Omit, 'size' | 'type' | 'style'> & { /** * Should the component occupy the whole width of its parent? */ block?: boolean, /** * Does the component need to conserve space? */ compact?: boolean, /** * Complementary content of the component. */ subtext?: React.ReactNode, } /** * Component for performing an action upon activation (e.g. when clicked). * * This component functions as a regular button. */ export const RadioTickBox = React.forwardRef( ( { children, block = false, compact = false, subtext, className: _className, as: _as, ...etcProps }: RadioTickBoxProps, ref, ) => { const styleProps = React.useMemo(() => ({ block, compact, appearance: CheckControlBase.CheckControlAppearance.TICK_BOX, type: CheckControlBase.CheckControlType.RADIO, uncheckedLabel: false, }), [block, compact]); return (
); }, ); RadioTickBox.displayName = 'ActionButton';