UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

29 lines (28 loc) 1.28 kB
'use client'; import '@ui5/webcomponents/dist/TableSelectionSingle.js'; import { withWebComponent } from '@ui5/webcomponents-react-base'; /** * The `TableSelectionSingle` component is used inside the `Table` to add single selection capabilities to the `Table`. * Since selection is key-based, each `TableRow` must define a unique `row-key` property. * * ### Usage * * The `TableSelectionSingle` component is a feature designed exclusively for use within the `Table` component. * It must be placed inside the `features` slot of `Table`. * This component is not intended for standalone use. * * ```html * <Table> * <TableSelectionSingle slot="features" selected="Row1"></TableSelectionSingle> * </Table> * ``` * * * * __Note:__ This is a UI5 Web Component! [TableSelectionSingle UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/TableSelectionSingle) | [Repository](https://github.com/UI5/webcomponents) * * @since [2.8.0](https://github.com/UI5/webcomponents/releases/tag/v2.8.0) of __@ui5/webcomponents__. */ const TableSelectionSingle = withWebComponent('ui5-table-selection-single', ['behavior', 'selected'], [], [], ['change']); TableSelectionSingle.displayName = 'TableSelectionSingle'; export { TableSelectionSingle };