Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@snack-uikit/icon-predefined
Advanced tools
npm i @snack-uikit/icon-predefined
import { HeartSVG } from '@snack-uikit/icons';
import { IconPredefined } from '@snack-uikit/icon-predefined';
<IconPredefined
appearance='red'
size='l'
className='className'
icon={HeartSVG}
decor
/>
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]
Включает цветную подложку для иконки.
name | type | default value | description |
---|---|---|---|
icon* | JSXElementConstructor<{ size?: number; className?: string; }> | - | JSX иконки |
className | string | - | CSS-класс |
appearance | enum Appearance: "primary" , "neutral" , "red" , "orange" , "yellow" , "green" , "blue" , "violet" , "pink" | primary | Внешний вид |
decor | boolean | true | Наличие цветной подложки |
size | enum Size: "s" , "m" , "l" | m | Размер |
shape | "round" | "square" | round | Форма: круглая или квадратная |
FAQs
Unknown package
The npm package @snack-uikit/icon-predefined receives a total of 1,145 weekly downloads. As such, @snack-uikit/icon-predefined popularity was classified as popular.
We found that @snack-uikit/icon-predefined demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.