Skip to content

danleavitt0/react-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`

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 ```
  • 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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published