const Example = () => {
return <HStack space={2}>
<Heading color="primary.300">Spinner</Heading>
<Spinner accessibilityLabel="Loading posts" />
</HStack>;
};
const Example = () => {
return <HStack space={2}>
<Spinner color="danger.400" />
<Spinner color="blue.500" />
<Spinner color={useColorModeValue("gray.900", "gray.100")} />
<Spinner color="warning.500" />
</HStack>;
};
const Example = () => {
return <HStack space={3}>
<Spinner size="sm" />
<Spinner size="lg" />
</HStack>;
};
Style to be passed in ActivityIndicator
Size of Spinner
Type: number | "small" | "sm" | "lg" | "large"
Accessibility label. This will be announced by screen reader when a user hovers or touches the spinner.
Spinner composes
so all
ActivityIndicator Props can be passed to Spinner.