UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

19 lines (18 loc) 1.05 kB
'use client'; import '@ui5/webcomponents/dist/SegmentedButtonItem.js'; import { withWebComponent } from '@ui5/webcomponents-react-base'; /** * Users can use the `SegmentedButtonItem` as part of a `SegmentedButton`. * * Clicking or tapping on a `SegmentedButtonItem` changes its state to `selected`. * The item returns to its initial state when the user clicks or taps on it again. * By applying additional custom CSS-styling classes, apps can give a different style to any * `SegmentedButtonItem`. * * * * __Note:__ This is a UI5 Web Component! [SegmentedButtonItem UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/SegmentedButtonItem) | [Repository](https://github.com/UI5/webcomponents) */ const SegmentedButtonItem = withWebComponent('ui5-segmented-button-item', ['accessibleDescription', 'accessibleDescriptionRef', 'accessibleName', 'accessibleNameRef', 'icon', 'tooltip'], ['disabled', 'selected'], [], ['click']); SegmentedButtonItem.displayName = 'SegmentedButtonItem'; export { SegmentedButtonItem };