Skip to content

RegisterStyleParams

Parameters for registerStyle.

Import:

import type { RegisterStyleParams } from '@mnaoumov/obsidian-lib/components/style-sheet-component';

Signature:

export interface RegisterStyleParams extends StyleSheetComponentConstructorParams

Extends: StyleSheetComponentConstructorParams

Properties

PropertyTypeDescription
appAppThe Obsidian app instance.
(Inherited from StyleSheetComponentConstructorParams)
componentComponentThe component that owns the stylesheet: the stylesheet is removed when it unloads.
cssstringThe CSS to attach.
(Inherited from StyleSheetComponentConstructorParams)

Links to this page: