1.0.16 • Published 10 years ago

react-components-9dots v1.0.16

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

Components

Get Started

To use these components, import from the package

import {Header} from 'react-components-9dots'

or import multiple components at once

import {Card, CardTitle, CardContent} from 'react-components-9dots'

Then use the the components like HTML elements.

<div>
  <Header />
  <Card />
</div>

Header

Properties

  • title (string)

    Sets the title that appears on the website

<Header title = 'Header example' />
  • style (object)

    Overwrites the default styles of the Header element

<Header style = {styles.header} />

Card

Card

Creates the outer card container. All of the information for the card should be inside of the Card element.

<Card>
  Content
</Card>

Properties

  • style (object)

    Overwrites the default styles of the component

<Card style = {styles.card}>
  Content
</Card>

CardTitle

Properties

  • content (string)

    The text that should be displayed in the title of the card

<Card>
  <CardTitle content = 'Example Title' />
</Card>
  • style (object)

    Overwrites the default styles of the component

<Card>
  <CardTitle style = {styles.cardTitle} />
</Card>

CardContent

ColumnLayout

<ColumnLayout />

Properties

  • cards (array)

    An array of cards that should be displayed in the column layout

<ColumnLayout cards = {this.cards} />
  • width (number) A number that sets how wide each column is
<ColumnLayout cards = {this.cards} width = {350} />
1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago