UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

28 lines (27 loc) 1.21 kB
import React, { ReactNode, SyntheticEvent } from 'react'; import '@vonage/vwc-switch'; /** This component is an extension of [<mwc-switch>](https://github.com/material-components/material-components-web-components/tree/master/packages/switch) * @param {SwitchConnotation | undefined} connotation attribute: &lt;VwcSwitch connotation /> * @param {boolean} enlarged attribute: &lt;VwcSwitch enlarged /> * @param {boolean} checked * @param {boolean} disabled * @param {string | undefined} ariaLabel * @param {string | undefined} ariaLabelledBy * @param {ShadowRootInit} shadowRootOptions */ declare const VwcSwitch: (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; connotation?: any; enlarged?: boolean | undefined; checked?: boolean | undefined; disabled?: boolean | undefined; ariaLabel?: string | undefined; ariaLabelledBy?: string | undefined; shadowRootOptions?: any; }) => JSX.Element; export default VwcSwitch;