@sjsf/shadcn-theme
Version:
The shadcn-svelte based theme for svelte-jsonschema-form
19 lines (18 loc) • 596 B
TypeScript
import type { ButtonType } from '@sjsf/form/fields/components';
import type { ButtonProps } from '../types/button';
declare module '@sjsf/form' {
interface UiOptions {
shadcnButton?: ButtonProps;
shadcnButtons?: {
[B in ButtonType]: ButtonProps;
};
}
}
declare const Button: import("svelte").Component<import("@sjsf/form/fields/components").ComponentCommonProps & {
type: ButtonType;
disabled: boolean;
children: import("svelte").Snippet;
onclick: () => void;
}, {}, "">;
type Button = ReturnType<typeof Button>;
export default Button;