Inline badge
To adopt this styling in a React component, apply the sl-badge class to a span element.
import { InlineBadge } from '~/components';
### Alpha <InlineBadge preset="alpha" />
### Beta <InlineBadge preset="beta" />
### Deprecated <InlineBadge preset="deprecated" />
### Early Access <InlineBadge preset="early-access" />
### Legacy <InlineBadge preset="legacy" />
### Default <InlineBadge text="Default" />Either preset or text and variant must be specified.
- 
alpha- Text: 
Alpha - Variant 
success 
 - Text: 
 - 
beta- Text: 
Beta - Variant 
caution 
 - Text: 
 - 
deprecated- Text: 
Deprecated - Variant 
danger 
 - Text: 
 - 
early-access- Text: 
Early Access - Variant 
note 
 - Text: 
 - 
legacy- Text: 
Legacy - Variant 
danger 
 - Text: 
 
Any string.
- 
note- Color: Blue
 
 - 
tip- Color: Purple
 
 - 
danger- Color: Red
 
 - 
caution- Color: Orange
 
 - 
success- Color: Green
 
 
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark