@vela-ui/react
Version:
Vela UI React components
151 lines (148 loc) • 3.82 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as tailwind_variants from 'tailwind-variants';
import { VariantProps } from 'tailwind-variants';
import React__default from 'react';
import { Slider as Slider$1, SliderOutput as SliderOutput$1, SliderThumb as SliderThumb$1, SliderTrack as SliderTrack$1 } from 'react-aria-components';
declare const sliderVariants: tailwind_variants.TVReturnType<{
orientation: {
horizontal: {
root: string;
track: string;
range: string;
};
vertical: {
root: string;
track: string;
range: string;
};
};
size: {
sm: {
track: string;
thumb: string;
};
md: {
track: string;
thumb: string;
};
lg: {
track: string;
thumb: string;
};
};
isDisabled: {
true: {
track: string;
range: string;
thumb: string;
};
};
isFocusable: {
true: {
thumb: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
output: string;
}, undefined, {
orientation: {
horizontal: {
root: string;
track: string;
range: string;
};
vertical: {
root: string;
track: string;
range: string;
};
};
size: {
sm: {
track: string;
thumb: string;
};
md: {
track: string;
thumb: string;
};
lg: {
track: string;
thumb: string;
};
};
isDisabled: {
true: {
track: string;
range: string;
thumb: string;
};
};
isFocusable: {
true: {
thumb: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
output: string;
}, tailwind_variants.TVReturnType<{
orientation: {
horizontal: {
root: string;
track: string;
range: string;
};
vertical: {
root: string;
track: string;
range: string;
};
};
size: {
sm: {
track: string;
thumb: string;
};
md: {
track: string;
thumb: string;
};
lg: {
track: string;
thumb: string;
};
};
isDisabled: {
true: {
track: string;
range: string;
thumb: string;
};
};
isFocusable: {
true: {
thumb: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
output: string;
}, undefined, unknown, unknown, undefined>>;
type SliderProps = React__default.ComponentProps<typeof Slider$1> & VariantProps<typeof sliderVariants>;
declare function Slider({ className, size, children, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
declare function SliderOutput({ className, ...props }: React__default.ComponentProps<typeof SliderOutput$1>): react_jsx_runtime.JSX.Element;
declare function SliderTrack({ className, ...props }: React__default.ComponentProps<typeof SliderTrack$1>): react_jsx_runtime.JSX.Element;
declare function SliderRange({ className, style, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
declare function SliderThumb({ className, ...props }: React__default.ComponentProps<typeof SliderThumb$1>): react_jsx_runtime.JSX.Element;
export { Slider, SliderOutput, type SliderProps, SliderRange, SliderThumb, SliderTrack };