UNPKG

@sjsf/shadcn4-theme

Version:

The shadcn-svelte based theme for svelte-jsonschema-form

17 lines (16 loc) 655 B
import type { Component } from 'svelte'; import type { Slider, SliderSingleRootProps, WithoutChildrenOrChild } from 'bits-ui'; import '@sjsf/form/fields/extra-widgets/range'; declare module '@sjsf/form' { interface UiOptions { shadcn4Range?: Omit<WithoutChildrenOrChild<SliderSingleRootProps>, 'type'>; } } declare module '../context.js' { interface ThemeComponents { Slider: Component<WithoutChildrenOrChild<Slider.RootProps>, {}, 'value' | 'ref'>; } } declare const Range: Component<import("@sjsf/form/fields/widgets").WidgetCommonProps<number>, {}, "value">; type Range = ReturnType<typeof Range>; export default Range;