Interface: DirectorTabSvelte5Registration
@faeyumbrea/obs-utils-api-types
@faeyumbrea/obs-utils-api-types / DirectorTabSvelte5Registration
Defined in: api.d.ts:75
Cross-bundle-safe Director tab. Instead of a component, you pass a mount callback that mounts the tab
with your own module’s Svelte mount(). A Svelte 5 component from another bundle cannot be mounted by
OBS Utils’ runtime — its runes resolve against your bundle’s effect context, so OBS Utils mounting it
throws effect_orphan. Letting your module mount it fixes that. (A Svelte 4 module can new Component()
inside the same callback.)
Properties
Section titled “Properties”
optionalicon?:string
Defined in: api.d.ts:78
key:
string
Defined in: api.d.ts:76
label:
string
Defined in: api.d.ts:77
mount: (
target,props) => () =>void
Defined in: api.d.ts:83
Mount the tab UI into target (e.g. mount(MyTab, { target, props })) and return a cleanup
function that tears it down (e.g. () => unmount(app)).
Parameters
Section titled “Parameters”target
Section titled “target”HTMLElement
disabled
Section titled “disabled”boolean
Returns
Section titled “Returns”() => void
order?
Section titled “order?”
optionalorder?:number
Defined in: api.d.ts:86