labelStyle
Choose whether Labels show their title, icon, or both.
labelStyle(value) sets the style for the current Label or descendant Labels.
Supported values: automatic, titleOnly, iconOnly, and titleAndIcon. With automatic, the surrounding container decides; a toolbar, for example, shows only the icon.
import { Label, Modifier } from "onescript/views"
<Label
symbol="bell"
modifier={Modifier.labelStyle("iconOnly")}
>
Notifications
</Label>The hidden title is still read by VoiceOver.
How is this guide?
Last updated on