Skip to content

API Reference / @gtkx/components / WidgetProps

Type Alias: WidgetProps<C, Own, ExtraOmit>

WidgetProps<C, Own, ExtraOmit> = Own & object & Omit<ComponentPropsWithRef<C>, ExtraOmit | keyof Own>

Defined in: types.d.ts:8

Props of a component whose backing widget defaults to one type but can be swapped through component.

Type Declaration

component?

optional component?: C

Type Parameters

C

C extends ElementType

Own

Own = unknown

ExtraOmit

ExtraOmit extends string = never

Released under the MPL-2.0 License.