@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
35 lines (34 loc) • 1.5 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
import '@vonage/vwc-checkbox';
/** This component is an extension of [<mwc-checkbox>](https://github.com/material-components/material-components-web-components/tree/master/packages/checkbox)
* @param {boolean} checked
* @param {boolean} indeterminate
* @param {boolean} disabled
* @param {string | undefined} name
* @param {string} value
* @param {string | undefined} ariaLabel
* @param {string | undefined} ariaLabelledBy
* @param {string | undefined} ariaDescribedBy
* @param {boolean} reducedTouchTarget - Touch target extends beyond visual boundary of a component by default.
Set to `true` to remove touch target added to the component.
* @param {ShadowRootInit} shadowRootOptions
*/
declare const VwcCheckbox: (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;
indeterminate?: boolean | undefined;
disabled?: boolean | undefined;
name?: string | undefined;
value?: string | undefined;
ariaLabel?: string | undefined;
ariaLabelledBy?: string | undefined;
ariaDescribedBy?: string | undefined;
reducedTouchTarget?: boolean | undefined;
shadowRootOptions?: any;
}) => JSX.Element;
export default VwcCheckbox;