@sjsf/shadcn4-theme
Version:
The shadcn-svelte based theme for svelte-jsonschema-form
20 lines (19 loc) • 919 B
TypeScript
import type { Component } from 'svelte';
import type { RadioGroup, RadioGroupItemProps, RadioGroupRootProps, WithoutChildrenOrChild } from 'bits-ui';
import '@sjsf/form/fields/extra-widgets/radio';
import '../types/label.js';
declare module '@sjsf/form' {
interface UiOptions {
shadcn4RadioGroup?: WithoutChildrenOrChild<RadioGroupRootProps>;
shadcn4RadioItem?: Omit<WithoutChildrenOrChild<RadioGroupItemProps>, 'value'>;
}
}
declare module '../context.js' {
interface ThemeComponents {
RadioGroup: Component<RadioGroup.RootProps, {}, 'value' | 'ref'>;
RadioGroupItem: Component<WithoutChildrenOrChild<RadioGroup.ItemProps>>;
}
}
declare const Radio: Component<import("@sjsf/form/fields/widgets").WidgetCommonProps<import("@sjsf/form").SchemaValue> & import("@sjsf/form/fields/widgets").Options, {}, "value">;
type Radio = ReturnType<typeof Radio>;
export default Radio;