@sjsf/shadcn-theme
Version:
The shadcn-svelte based theme for svelte-jsonschema-form
25 lines (24 loc) • 1.08 kB
TypeScript
import type { Component } from 'svelte';
import type { Command } from 'bits-ui';
import type { ButtonProps } from '../types/button';
import '../types/popover';
declare module '@sjsf/form' {
interface UiOptions {
shadcnComboboxTrigger?: ButtonProps;
shadcnComboboxInput?: Command.InputProps;
shadcnComboboxEmptyText?: string;
}
}
declare module '../context.js' {
interface ThemeComponents {
Command: Component<Command.RootProps, {}, 'ref' | 'value'>;
CommandInput: Component<Command.InputProps, {}, 'ref' | 'value'>;
CommandList: Component<Command.ListProps, {}, 'ref'>;
CommandEmpty: Component<Command.EmptyProps, {}, 'ref'>;
CommandGroup: Component<Command.GroupProps, {}, 'ref'>;
CommandItem: Component<Command.ItemProps, {}, 'ref'>;
}
}
declare const Combobox: Component<import("@sjsf/form/fields/widgets").WidgetCommonProps<import("@sjsf/form").SchemaValue> & import("@sjsf/form/fields/widgets").Options, {}, "value">;
type Combobox = ReturnType<typeof Combobox>;
export default Combobox;