<Badge size="md" variant="solid" borderRadius="$none" action="success"><BadgeText>New feature</BadgeText><BadgeIcon as={GlobeIcon} ml="$2" /></Badge>
import { Badge } from "@gluestack-ui/themed"
export default () => (<Badge><BadgeText /><BadgeIcon /></Badge>)
Sx Prop | Description |
---|---|
_text | Prop to style BadgeText Component |
_icon | Prop to style BadgeIcon Component |
Name | Value | Default |
---|---|---|
action | error | warning | success | info | muted | success |
variant | solid | outline | solid |
size | sm | md | lg | md |
<VStack space="2xl"><HStack space="md"><Avatar><AvatarFallbackText>SS</AvatarFallbackText><AvatarImagesource={{uri: "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8dXNlcnxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=800&q=60",}}/></Avatar><VStack><HStack><Heading size="sm">Ronald Richards</Heading><Badge size="sm" variant="solid" action="success" ml="$1"><BadgeText>Verified</BadgeText><BadgeIcon as={BadgeCheckIcon} ml="$1" /></Badge></HStack><Text size="sm">Nursing Assistant</Text></VStack></HStack></VStack>
<Menuplacement={"top"}trigger={({ ...triggerProps }) => {return (<Button {...triggerProps}><ButtonText>Menu</ButtonText></Button>)}}><MenuItem key="Community" textValue="Community"><HStack space="sm" alignItems="center"><Icon as={GlobeIcon} size="sm" /><Text fontSize="$sm" lineHeight="$md">Community</Text></HStack></MenuItem><MenuItem key="Plugins" textValue="Plugins"><HStack space="sm" alignItems="center"><Icon as={PuzzleIcon} size="sm" /><Text fontSize="$sm" lineHeight="$md">Plugins</Text></HStack></MenuItem><MenuItem key="Theme" textValue="Theme"><HStack space="sm" alignItems="center"><Icon as={PaintBucket} size="sm" /><Text fontSize="$sm" lineHeight="$md">Theme</Text><Badge bg="$backgroundLight600"><BadgeText color="$textLight50">New</BadgeText></Badge></HStack></MenuItem><MenuItem key="Settings" textValue="Settings"><HStack space="sm" alignItems="center"><Icon as={SettingsIcon} size="sm" /><Text fontSize="$sm" lineHeight="$md">Settings</Text></HStack></MenuItem><MenuItem key="Add account" textValue="Add account"><HStack space="sm" alignItems="center"><Icon as={AddIcon} size="sm" /><Text fontSize="$sm" lineHeight="$md">Add account</Text></HStack></MenuItem></Menu>
<Box alignItems="center"><VStack><Badgeh={22}w={22}bg="$red600"borderRadius="$full"mb={-14}mr={-14}zIndex={1}variant="solid"alignSelf="flex-end"><BadgeText color="$white">2</BadgeText></Badge><Button><ButtonText>Notifications</ButtonText></Button></VStack></Box>