@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
24 lines (19 loc) • 1.03 kB
JavaScript
'use client';
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const jsxRuntime = require('react/jsx-runtime');
const react$1 = require('@zag-js/react');
const react = require('react');
const factory = require('../factory.cjs');
const useColorPickerChannelPropsContext = require('./use-color-picker-channel-props-context.cjs');
const useColorPickerContext = require('./use-color-picker-context.cjs');
const ColorPickerChannelSliderLabel = react.forwardRef(
(props, ref) => {
const colorPicker = useColorPickerContext.useColorPickerContext();
const channelProps = useColorPickerChannelPropsContext.useColorPickerChannelPropsContext();
const mergedProps = react$1.mergeProps(colorPicker.getChannelSliderLabelProps(channelProps), props);
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref });
}
);
ColorPickerChannelSliderLabel.displayName = "ColorPickerChannelSliderLabel";
exports.ColorPickerChannelSliderLabel = ColorPickerChannelSliderLabel;