react-components-9dots

1.0.16 • Public • Published

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

Creates a toolbar with a search box inside of it. This should be used for creating the top navigation bar for your website. ```html ```

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

Creates a card for displaying information. A card should normally be created using three elements: `Card`, `CardTitle`, and `CardContent`

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

Creates a title bar inside of the card. The CardTitle has a default color of 'tomato' ```html ```

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

This element creates an area to store the information for the card. ```html

Information

More Information

```

ColumnLayout

Creates a grid layout for displaying information. This component needs to be supplied with an array of react components to be displayed.
<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.cardswidth = {350} />

Readme

Keywords

none

Package Sidebar

Install

npm i react-components-9dots

Weekly Downloads

3

Version

1.0.16

License

ISC

Last publish

Collaborators

  • danleavitt0