foregroundStyle
Set an inheritable foreground shape style.
foregroundStyle(style) sets an inheritable ShapeStyle for the view and its descendants.
import { Modifier, ShapeStyle, Text } from "onescript/views"
<Text modifier={Modifier.foregroundStyle(ShapeStyle.secondary)}>Secondary text</Text>See ShapeStyle for hierarchical styles, colors, and gradients.
How is this guide?
Last updated on