diff --git a/packages/components/src/slider-control/index.ts b/packages/components/src/slider-control/index.ts new file mode 100644 index 00000000000000..dd8874dc70a4f8 --- /dev/null +++ b/packages/components/src/slider-control/index.ts @@ -0,0 +1,2 @@ +export { default as SliderControl } from './slider-control/component'; +export { useSliderControl } from './slider-control/hook'; diff --git a/packages/components/src/slider-control/mark/component.tsx b/packages/components/src/slider-control/mark/component.tsx new file mode 100644 index 00000000000000..02f2a5dd2f385c --- /dev/null +++ b/packages/components/src/slider-control/mark/component.tsx @@ -0,0 +1,48 @@ +/** + * Internal dependencies + */ +import { contextConnect, WordPressComponentProps } from '../../ui/context'; +import { useMark } from './hook'; +import { View } from '../../view'; + +import type { MarkProps } from '../types'; + +const UnconnectedMark = ( + props: WordPressComponentProps< MarkProps, 'span' >, + forwardedRef: React.ForwardedRef< any > +) => { + const { + className, + isFilled = false, + label, + labelClassName, + style = {}, + ...otherProps + } = useMark( props ); + + return ( + <> +