Either an icon object or a string representing the icon name.
Badge
Badge
---
import { Badge } from'fulldev-ui'
---
<Badgeicon="circle"text="Badge" />
<Badgetext="Badge"icon="circle" />
size
The size prop cascades: it is inherited from the parent and it is applied to all children.
Badge
Badge
Badge
---
import { Badge } from'fulldev-ui'
---
<Badgesize="sm">Badge</Badge>
<Badgesize="md">Badge</Badge>
<Badgesize="lg">Badge</Badge>
compact
The compact prop changes the underlying values used by the size prop. Just like the size prop it cascades, which means it is inherited from the parent and it is applied to all children.
With the compact prop you are able to use the same component in different contexts, like in a large hero or a small card. It will automatically adapt.
Badge
Badge
Badge
---
import { Badge } from'fulldev-ui'
---
<Badgecompactsize="sm">Badge</Badge>
<Badgecompactsize="md">Badge</Badge>
<Badgecompactsize="lg">Badge</Badge>
variant
Sets the color variant used for this component and all its children.