UNPKG

@sjsf/shadcn-theme

Version:

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

17 lines (16 loc) 637 B
import type { Component } from 'svelte'; import type { Switch, SwitchRootProps, WithoutChildrenOrChild } from 'bits-ui'; import '@sjsf/form/fields/extra-widgets/switch'; declare module '@sjsf/form' { interface UiOptions { shadcnSwitch?: WithoutChildrenOrChild<SwitchRootProps>; } } declare module '../context.js' { interface ThemeComponents { Switch: Component<WithoutChildrenOrChild<Switch.RootProps>, {}, 'checked' | 'ref'>; } } declare const Switch: Component<import("@sjsf/form/fields/widgets").WidgetCommonProps<boolean>, {}, "value">; type Switch = ReturnType<typeof Switch>; export default Switch;