UNPKG

@vonage/vivid-react

Version:

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

51 lines (49 loc) 2.75 kB
import React, { ReactNode, SyntheticEvent } from 'react'; /** VwcSplitButton * For more info on this Vivid element please visit https://vivid.deno.dev/components/split-button * @param {HTMLButtonElement} _action - Action HTML button element * @param {HTMLButtonElement} _indicator - Indicator HTML button element * @param {SplitButtonConnotation | undefined} connotation - The connotation the split button should have. **attribute** `connotation` * @param {SplitButtonShape | undefined} shape - The shape the split button should have. **attribute** `shape` * @param {SplitButtonAppearance | undefined} appearance - The appearance the split button should have. **attribute** `appearance` * @param {SplitButtonSize | undefined} size - The size the split button should have. **attribute** `size` * @param {string | undefined} label - Indicates the split button's label. **attribute** `label` * @param {string} splitIndicator - Indicates the split button's icon indicator. **attribute** `split-indicator` * @param {boolean} disabled - Indicates if the button is disabled. **attribute** `disabled` * @param {| string | null} indicatorAriaLabel - Defines a string value that labels the indicator element. https://www.w3.org/TR/wai-aria-1.1/#aria-label **attribute** `indicator-aria-label` * @param {string | undefined} icon - A decorative icon the custom element should have. **attribute** `icon` * @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 VwcSplitButton: { (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; onActionClick?: ((event: SyntheticEvent) => void) | undefined; onIndicatorClick?: ((event: SyntheticEvent) => void) | undefined; onClick?: ((event: SyntheticEvent) => void) | undefined; _action?: any; _indicator?: any; connotation?: any; shape?: any; appearance?: any; size?: any; label?: string | undefined; splitIndicator?: string | undefined; disabled?: boolean | undefined; indicatorAriaLabel?: any; icon?: string | undefined; _vividAriaBehaviour?: any; VIVID_VERSION?: string | undefined; componentName?: string | undefined; }): JSX.Element; displayName: string; }; export default VwcSplitButton;