Command Palette

Search for a command to run...

Pokemon Badge

Badge component to display Pokémon types with consistent color coding.

FireWaterGrassElectricPsychic

Installation

Usage

Examples

Type

Use the type prop to display a Pokémon's elemental type. It sets the badge's background and text color automatically based on the type-colors theme token.

firewatergrasselectric

Combined

Use the variant prop to change the visual style of the badge. Note that some variants may not suit every type due to color contrast.

solidoutlinesoftghost

API Reference

Props for PokemonBadgeType. Also accepts all native <span> props.

PropTypeDefault
type"normal"
variant"solid"
asChildbooleanfalse