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

@snack-uikit/counter

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/counter

Компонент для отображения количесвта уведомлений (доступен в 3 вариантах: 9, 9+, 9K)

  • 0.6.5-preview-efee0b7d.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
121
decreased by-85.12%
Maintainers
0
Weekly downloads
 
Created
Source

Counter

Installation

npm i @snack-uikit/counter

Changelog

Example

import { Counter } from "@snack-uikit/counter";

<Counter
  value={42}
  size='m'
/>

<Counter 
  value={101}
  appearance='critical'
  variant='count-plus'
  plusLimit={100}
/>

Counter

Компонент счетчик

Props

nametypedefault valuedescription
value*number-Значение
appearanceenum Appearance: "primary", "neutral", "red"primaryВнешний вид
variantenum Variant: "count", "count-plus", "count-k"countВариант
sizeenum Size: "s", "m"sРазмер
plusLimitnumber10Порог сокращения значения в формат v+. Например 1500 -> 999+ для 1000
classNamestring-CSS-класс
colorenum Color: "accent", "decor"accentСемантический цвет

FAQs

Package last updated on 25 Oct 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