npm.io
0.0.21 • Published 4 years ago

@pongo-ui/react-card

Licence
MIT
Version
0.0.21
Deps
4
Size
224 kB
Vulns
0
Weekly
0
Stars
5

Card

The Card component displays content and presents actions to the user.

Use

  1. Install the @pongo-ui/react-card component.

Using NPM

npm install @pongo-ui/react-card

Using Yarn

yarn add @pongo-ui/react-card
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Card component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Card } from '@pongo-ui/react-card'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Card>Hello World</Card>
    <Provider>
  )
}

API

To learn more about the Card API take a look at the Card Interface file.