Interface: UseMaterialColorOptions
Defined in: hooks/use-material-color/UseMaterialColorOptions.ts:5
Specified material color options like Variant, Contrast Level, etc.
const defaultOptions = {
variant: MaterialColor.Variant.TONAL_SPOT,
// 0 or MaterialColor.ContrastLevelPresets.DEFAULT
contrastLevel: 0,
// React Native app color scheme
isDark: Appearance.getColorScheme() == "dark",
}
Extends
Properties
errorPalette?
optionalerrorPalette?:string
Inherited from
UseMaterialColorInstance.errorPalette
neutralPalette?
optionalneutralPalette?:string
Inherited from
UseMaterialColorInstance.neutralPalette
neutralVariantPalette?
optionalneutralVariantPalette?:string
Inherited from
UseMaterialColorInstance.neutralVariantPalette
primaryPalette?
optionalprimaryPalette?:string
Inherited from
UseMaterialColorInstance.primaryPalette
secondaryPalette?
optionalsecondaryPalette?:string
Inherited from
UseMaterialColorInstance.secondaryPalette
tertiaryPalette?
optionaltertiaryPalette?:string