Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp component base.themeprovider.trygettheme

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-component-base > ThemeProvider > tryGetTheme

ThemeProvider.tryGetTheme() method

If set, get the current scoped theme.

Signature:

tryGetTheme(): IReadonlyTheme | undefined;

Returns:

IReadonlyTheme | undefined

Clone this wiki locally