@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
36 lines (35 loc) • 1.92 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcSelectableBox
* For more info on this Vivid element please visit https://vivid.deno.dev/components/selectable-box
* @param {boolean} checked - Controls the checked state of the box **attribute** `checked`
* @param {boolean} clickable **attribute** `clickable`
* @param {boolean} clickableBox - Makes the entire selectable box clickable **attribute** `clickable-box`
* @param {SelectableBoxConnotation | undefined} connotation - The connotation the selectable box should have. **attribute** `connotation`
* @param {SelectableBoxControlType | undefined} controlType - The type of control the box should have: checkbox or radio. **attribute** `control-type`
* @param {boolean} tight - Removes the padding around the box's slot content **attribute** `tight`
* @param {'delegate'} _vividAriaBehaviour
* @param {string} VIVID_VERSION - The current version of the Vivid library, which is useful for debugging.
It can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.
* @param {string} componentName - Core component name, without prefix
*/
declare const VwcSelectableBox: {
(props: {
children?: ReactNode;
slot?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
onChange?: ((event: SyntheticEvent) => void) | undefined;
checked?: boolean | undefined;
clickable?: boolean | undefined;
clickableBox?: boolean | undefined;
connotation?: any;
controlType?: any;
tight?: boolean | undefined;
_vividAriaBehaviour?: any;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcSelectableBox;