@c8s/card
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@c8s/card

github npm:version typescript license browserslist code style:prettier

Usage

/**
 * As to prepare of using the `Card`
 * 
 * ```sh
 * yarn add @c8s/card @c8s/theme react @types/react styled-components @types/styled-components
 * ```
 */
import Card from '@c8s/card';
import {Theme, theme} from '@c8s/theme';

Example

() => (
  <Theme theme={theme}>
    {/* ... */}
      <Card>
        <a href="#">
          <Card.img src="https://placehold.jp/200x200.png" />
          <div>
            <div role="heading">タイトル</div>
            <Card.separator />
            <div style={{fontSize: 13}}>ほげほげふがふが<br />ほげほげふがふが</div>
          </div>
        </a>
      </Card>
    {/* ... */}
  </Theme>
);

Contributors

Thanks goes to these wonderful people (emoji key):



📖

Aki-Japan

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i @c8s/card

Weekly Downloads

4

Version

0.0.7

License

MIT

Unpacked Size

31.2 kB

Total Files

57

Last publish

Collaborators

  • akijpn
  • nju33