UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

16 lines (15 loc) 882 B
'use client'; import { withWebComponent } from '@ui5/webcomponents-react-base'; /** * The `SegmentedButton` shows a group of items. When the user clicks or taps * one of the items, it stays in a pressed state. It automatically resizes the items * to fit proportionally within the component. When no width is set, the component uses the available width. * * * * * __Note:__ This is a UI5 Web Component! [SegmentedButton UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/SegmentedButton) | [Repository](https://github.com/UI5/webcomponents) */ const SegmentedButton = withWebComponent('ui5-segmented-button', ['accessibleDescription', 'accessibleDescriptionRef', 'accessibleName', 'accessibleNameRef', 'selectionMode'], ['itemsFitContent'], [], ['selection-change']); SegmentedButton.displayName = 'SegmentedButton'; export { SegmentedButton };