applyThemes
Theme
stable
Install a list of themes at once by calling applyTheme for each entry. Returns the ids that were actually written; SSR-skipped or empty themes are omitted from the result.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- themesrequisIOrigamTheme[]
- Array of theme objects to inject. Each is processed by applyTheme individually.
API
Valeur de retour
La valeur retournée par cet util.
- Array of injected <style> element ids (may be shorter than the input when some entries are skipped in SSR or have no variables).
Usage
Exemples
Extraits de code prêts à coller.
Inject multiple themes at once