UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

18 lines (17 loc) 766 B
'use client'; import { withWebComponent } from '../../internal/withWebComponent.js'; /** * The `ColorPalette` provides the users with a range of predefined colors. The colors are fixed and do not change with the theme. * * ### Usage * * The `ColorPalette` is meant for users that need to select a color from a predefined set. * To define the colors, use the `ColorPaletteItem` component inside the default slot of the `ColorPalette`. * * * * __Note__: This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/) */ const ColorPalette = withWebComponent('ui5-color-palette', [], [], [], ['item-click']); ColorPalette.displayName = 'ColorPalette'; export { ColorPalette };