@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
25 lines (24 loc) • 928 B
JavaScript
'use client';
import '@ui5/webcomponents/dist/ColorPicker.js';
import { withWebComponent } from '@ui5/webcomponents-react-base';
/**
* The `ColorPicker` allows users to choose any color and provides different input options for selecting colors.
*
* ### Usage
*
* #### When to use
* Use the color picker if:
*
* - users need to select any color freely.
*
* #### When not to use
*
* - Users need to select one color from a predefined set of colors. Use the ColorPalette component instead.
*
*
*
* __Note:__ This is a UI5 Web Component! [ColorPicker UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/ColorPicker) | [Repository](https://github.com/UI5/webcomponents)
*/
const ColorPicker = withWebComponent('ui5-color-picker', ['accessibleName', 'accessibleNameRef', 'name', 'value'], ['simplified'], [], ['change']);
ColorPicker.displayName = 'ColorPicker';
export { ColorPicker };