@sap-ux/ui-components
Version:
SAP UI Components Library
32 lines • 1.17 kB
TypeScript
import * as React from 'react';
import type { UIToggleGroupProps, ToggleGroupOption } from './UIToggleGroup.types';
import type { UIToggleGroupOptionProps } from './UIToggleGroupOption/UIToggleGroupOption.types';
import './UIToggleGroup.scss';
interface UIToggleGroupState {
options: ToggleGroupOption[];
}
/**
* UIToggleGroup component.
*
* @exports
* @class UIToggleGroup
* @extends {React.Component<UIToggleGroupProps, UIToggleGroupState>}
*/
export declare class UIToggleGroup extends React.Component<UIToggleGroupProps, UIToggleGroupState> {
labelId: string;
/**
* Initializes component properties.
*
* @param {UIToggleGroupProps} props
*/
constructor(props: UIToggleGroupProps);
onClick: (_evt: React.MouseEvent<HTMLButtonElement, MouseEvent>, option?: UIToggleGroupOptionProps) => void;
onFocus: (_evt: React.FocusEvent<HTMLButtonElement>, option?: UIToggleGroupOptionProps) => void;
onBlur: (_evt: React.FocusEvent<HTMLButtonElement>, _option?: UIToggleGroupOptionProps) => void;
/**
* @returns {JSX.Element}
*/
render(): JSX.Element;
}
export {};
//# sourceMappingURL=UIToggleGroup.d.ts.map