import { provideDynamicComponent } from '@daffodil/content'
Provides component registrations for use with the content schema renderer. Accepts a single registration or an array of registrations.
const provideDynamicComponent: (registration: ComponentRegistration | ComponentRegistration[]) => Provider[]
// Single registration
provideDynamicComponent({
componentType: MyComponent,
name: 'MyComponent'
})
// Multiple registrations
provideDynamicComponent([
{ componentType: ComponentA, name: 'ComponentA' },
{ componentType: ComponentB, name: 'ComponentB' }
])
// Single registration
provideDynamicComponent({
componentType: MyComponent,
name: 'MyComponent'
})
// Multiple registrations
provideDynamicComponent([
{ componentType: ComponentA, name: 'ComponentA' },
{ componentType: ComponentB, name: 'ComponentB' }
])