UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

22 lines (21 loc) 1.09 kB
'use client'; import '@ui5/webcomponents/dist/CalendarLegendItem.js'; import { withWebComponent } from '../../internal/withWebComponent.js'; /** * Each `CalendarLegendItem` represents a legend item, displaying a color with a label. * The color is determined by the `type` property and the label by the `text` property. * If a `SpecialCalendarDate` is used within the `Calendar` and a type is set, clicking on a `CalendarLegendItem` * with the same type will emphasize the respective date(s) in the calendar. * * ### Usage * The `CalendarLegendItem` is intended to be used within the `CalendarLegend` component. * * * * __Note__: This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/) * * @since [1.23.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.23.0) of __@ui5/webcomponents__. */ const CalendarLegendItem = withWebComponent('ui5-calendar-legend-item', ['text', 'type'], [], [], []); CalendarLegendItem.displayName = 'CalendarLegendItem'; export { CalendarLegendItem };