Role
ARIA's roles, which role takes; each maps to a VoiceOver trait and a TalkBack role.
Utilização
Overlay a now-playing caption
Este tipo é usado por Blur
import { Blur, Image, Text, VStack } from 'kuito';
export default function NowPlaying() {
return (
<VStack flex={1}>
<Image
src="https://example.com/cover.jpg"
position="absolute"
top={0}
left={0}
right={0}
bottom={0}
/>
<Blur material="thin" position="absolute" bottom={0} left={0} right={0} padding={16}>
<Text>Now playing</Text>
</Blur>
</VStack>
);
}Declaração do tipo
export type Role =
| 'alert'
| 'button'
| 'checkbox'
| 'combobox'
| 'grid'
| 'heading'
| 'img'
| 'link'
| 'list'
| 'menu'
| 'menubar'
| 'menuitem'
| 'none'
| 'presentation'
| 'progressbar'
| 'radio'
| 'radiogroup'
| 'scrollbar'
| 'searchbox'
| 'slider'
| 'spinbutton'
| 'summary'
| 'switch'
| 'tab'
| 'tablist'
| 'timer'
| 'toolbar';Tipo
"alert" | "button" | "checkbox" | "combobox" | "grid" | "heading" | "img" | "link" | "list" | "menu" | "menubar" | "menuitem" | "none" | "presentation" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "summary" | "switch" | "tab" | "tablist" | "timer" | "toolbar"Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.