UNPKG

@sjsf/shadcn-theme

Version:

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

20 lines (19 loc) 914 B
import type { Component } from 'svelte'; import type { RadioGroup, RadioGroupItemProps, RadioGroupRootProps, WithoutChildrenOrChild } from 'bits-ui'; import '@sjsf/form/fields/extra-widgets/radio'; import '../types/label'; declare module '@sjsf/form' { interface UiOptions { shadcnRadioGroup?: WithoutChildrenOrChild<RadioGroupRootProps>; shadcnRadioItem?: 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;