Socket
Book a DemoInstallSign in
Socket

@sikt/sds-badge

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-badge

## Consume

2.1.0
latest
npmnpm
Version published
Weekly downloads
1.9K
48.95%
Maintainers
3
Weekly downloads
 
Created
Source

@sikt/sds-badge

Consume

npm i -s @sikt/sds-badge

React

import { Badge } from "@sikt/sds-badge";
import "@sikt/sds-badge/dist/index.css";

<Badge>Hello, World!</Badge>;

The badge can be marked as active by using the active-prop, altering its appearance:

<Badge active>I am Active!</Badge>

Icons can be added to the badge by passing an sds-icon with the icon-prop.

import { Badge } from "@sikt/sds-badge";
import { InfoIcon } from "@sikt/sds-icons";
import "@sikt/sds-badge/dist/index.css";
import "@sikt/sds-icon/dist/index.css";

<Badge icon={<InfoIcon />}>Information</Badge>;

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-badge");

Create custom markup:

<span class="sds-badge"> Hello, World! </span>

FAQs

Package last updated on 20 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.