Socket
Socket
Sign inDemoInstall

@workday/canvas-kit-react-card

Package Overview
Dependencies
71
Maintainers
6
Versions
300
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @workday/canvas-kit-react-card

Common Canvas card component for React


Version published
Weekly downloads
1.8K
decreased by-26.52%
Maintainers
6
Install size
8.00 MB
Created
Weekly downloads
ย 

Readme

Source

Canvas Kit Card

Generic Canvas card component

> Workday Design Reference

Installation

yarn add @workday/canvas-kit-react

or

yarn add @workday/canvas-kit-react-card

Usage

import Card from '@workday/canvas-kit-react-card';
import {depth, spacing} from '@workday/canvas-kit-react-core';

<Card heading="Title">
  Card contents
</Card>

<Card padding={spacing.l}>
  Card with custom padding
</Card>

<Card depth={depth[1]}>
  Card with custom depth
</Card>

Static Properties

None

Component Props

Required

None

Optional

heading: ReactNode

Heading at the top of the card.

Default: null


headingId: string

Heading ID for accessibility. Useful tie to an aria-labelledby


padding: 0 | CanvasSpacingValue

Padding of the card. Style imported from @workday/canvas-kit-react-core.

Default: spacing.l


depth: CanvasDepthValue

Depth of the card. Style imported from @workday/canvas-kit-react-core.

Default: depth[2]


width: number | string

Width of the card.

Default: null


height: number | string

Height of the card.

Default: null

Keywords

FAQs

Last updated on 09 Jul 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc