Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sikt/sds-badge

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-badge

## Consume

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
207
decreased by-56.42%
Maintainers
2
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-icon";
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 08 Jan 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc