New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@snack-uikit/icon-predefined

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/icon-predefined

  • 0.7.2-preview-baf754b1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by662.58%
Maintainers
0
Weekly downloads
 
Created
Source

Icon Predefined

Installation

npm i @snack-uikit/icon-predefined

Changelog

Example

import { HeartSVG } from '@snack-uikit/icons';
import { IconPredefined } from '@snack-uikit/icon-predefined';

<IconPredefined
    appearance='red'
    size='l'
    className='className'
    icon={HeartSVG}
    decor
/>

Props

icon: JSXElementConstructor

Компонент svg-иконки из пакета @snack-uikit/icons.

className?: string

css-класс контейнера.

appearance?: Appearance - primary

Цвет иконки. Возможные варианты:

  • primary
  • neutral
  • red
  • orange
  • yellow
  • green
  • blue
  • violet
  • pink
size?: Size - s

Размер компонента. Возможные варианты:

  • s
  • m
  • l
decor?: boolean - [true]

Включает цветную подложку для иконки.

IconPredefined

Props

nametypedefault valuedescription
icon*JSXElementConstructor<{ size?: number; className?: string; }>-JSX иконки
classNamestring-CSS-класс
appearanceenum Appearance: "primary", "neutral", "red", "orange", "yellow", "green", "blue", "violet", "pink"primaryВнешний вид
decorbooleantrueНаличие цветной подложки
sizeenum Size: "s", "m", "l"mРазмер
shape"round" | "square"roundФорма: круглая или квадратная

FAQs

Package last updated on 10 Dec 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