@sjsf/shadcn4-theme
Version:
The shadcn-svelte based theme for svelte-jsonschema-form
18 lines (17 loc) • 666 B
TypeScript
import type { Component } from 'svelte';
import type { Switch, SwitchRootProps, WithoutChildrenOrChild } from 'bits-ui';
import '@sjsf/form/fields/extra-widgets/switch';
import '../types/label.js';
declare module '@sjsf/form' {
interface UiOptions {
shadcn4Switch?: 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;