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

@snack-uikit/card

Package Overview
Dependencies
Maintainers
3
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/card

Card

  • 0.9.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
742
increased by18.34%
Maintainers
3
Weekly downloads
 
Created
Source

Card

Installation

npm i @snack-uikit/card

Changelog

Example

import { Card, SearchPrivate } from "@snack-uikit/card";

  <Card
    checked={checked}
    onClick={handleClick}
    image={<Card.Image {...cardImageProps}/>}
    header={<Card.Header {...cardHeaderProps} />}
    footer={<Card.Footer {...cardFooterProps}/>}
    functionBadge={<Card.FunctionBadge {...cardFunctionBadgeProps} />}
  >
    <ContentElement />
  </Card>

Card

Props

nametypedefault valuedescription
disabledboolean-Управление состоянием интерактивности
checkedboolean-Управление состоянием выбран/не выбран
outlineboolean-Управление состоянием наличия обводки
multipleSelectionboolean-Отображение галочки для режима массового выделения карточек
onClick() => void-Колбек на клик по карточке
sizeenum Size: "s", "m", "l"-Размер
promoBadgestring-Текст для PromoBadge
childrenReactNode-Вложенный контент
headerReactElement<HeaderProps, string | JSXElementConstructor<any>>-Вложенный Header
footerReactNode-Вложенный Footer
imageReactNode-Вложенный Image
functionBadgeReactNode-Вложенный FunctionBadge
classNamestring-CSS-класс для элемента с контентом

FAQs

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