UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

18 lines (17 loc) 844 B
'use client'; import { withWebComponent } from '@ui5/webcomponents-react-base'; /** * 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! [ColorPalette UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/ColorPalette) | [Repository](https://github.com/UI5/webcomponents) */ const ColorPalette = withWebComponent('ui5-color-palette', ['accessibleName', 'accessibleNameRef'], [], [], ['item-click']); ColorPalette.displayName = 'ColorPalette'; export { ColorPalette };