2.0.7 • Published 6 years ago

the-card v2.0.7

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

the-card

Build Status npm Version JS Standard

Card of the-component

Installation

$ npm install the-card --save

Usage

'use strict'

import React from 'react'
import { TheCard, TheTwitterCard, TheCardStyle } from 'the-card'

const snippet = `
<a class="twitter-grid" href="https://twitter.com/TwitterDev/timelines/539487832448843776?ref_src=twsrc%5Etfw">
National Park Tweets</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8">

</script>
`

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <div>
        <TheCardStyle/>
        <TheCard>
          <TheCard.Header>This is header</TheCard.Header>
          <TheCard.Body>This is body</TheCard.Body>
        </TheCard>

        <hr/>

        <TheTwitterCard snippet={snippet}>
          This is custom comment
        </TheTwitterCard>
      </div>

    )
  }
}

export default ExampleComponent

Components

TheCard

Card of the-component

Props

NameTypeDescriptionDefault

TheCardStyle

Style for TheCard

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

TheTwitterCard

Card for twitter

Props

NameTypeDescriptionDefault
snippetstringTweet embed snippet

License

This software is released under the MIT License.

Links

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.0.0

7 years ago