import { FieldBaseProps } from "../FieldBase/FieldBase.mjs"; import { WidthProp } from "@marigold/system"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; export interface SliderProps extends Omit, 'children' | 'isDisabled' | 'orientation' | 'style'>, Pick, 'description' | 'addon'> { /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: string; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: string; /** * The `name` attribute for the slider input(s), used for form submission. * - For single-thumb sliders, provide a string. * - For range sliders (two thumbs), provide a tuple of two strings, one for each thumb. */ name?: string | [string, string]; /** * Aria labels for the thumbs in the slider. * - For single-thumb sliders, provide a string. * - For range sliders (two thumbs), provide a tuple of two strings, one for each thumb. */ thumbLabels?: string | [string, string]; /** * Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width * * Numeric/scale values are spacing-scale tokens, not pixels: `width={64}` * resolves to `calc(var(--spacing) * 64)` ~= 16rem (256px), not 64px. * @default full */ width?: WidthProp['width']; /** * If `true`, the input is disabled. * @default false */ disabled?: boolean; /** * Set the label of the slider. */ label?: ReactNode; /** Ref to the DOM element the component renders. */ ref?: Ref; } declare const Slider: ({ variant, size, width, disabled, label, addon, name, thumbLabels, ref, ...rest }: SliderProps) => import("react").JSX.Element; export { Slider };