Inline badge
Component
Section titled “Component”To adopt this styling in a React component, apply the sl-badge
class to a span
element.
Alpha Alpha
Section titled “Alpha ”Beta Beta
Section titled “Beta ”Deprecated Deprecated
Section titled “Deprecated ”Early Access Early Access
Section titled “Early Access ”Legacy Legacy
Section titled “Legacy ”Default Default
Section titled “Default ”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" />
Inputs
Section titled “Inputs”Either preset
or text
and variant
must be specified.
Presets
Section titled “Presets”-
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.
Variant
Section titled “Variant”-
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