Packages

t

fabric

UseCustomizableHooks

trait UseCustomizableHooks extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UseCustomizableHooks
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def useCustomizable[SP <: Object, S <: IStyleSetTag](fields: Seq[String] = Nil, scope: UndefOr[String] = js.undefined): StandardSettingsWithTheme[SP, S]

    Hook to get customized theme in a function component.

    Hook to get customized theme in a function component. It's the same as using a customizable decorator or the styled HOC. fields automatically has theme and styles added so the return value has those values.

    See also

    https://github.com/microsoft/fluentui/issues/9858

  2. def useTheme[SP <: Object, S <: IStyleSetTag](): ITheme

    Get the theme via Customizations which is different than the global theme obtained through getTheme() apparently.