1.12.0 • Published 5 years ago

ghostout-ui-kit v1.12.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

ghostout-ui-kit

Travis npm package Coverage Status

React UI Kit based on the Bulma CSS framework

npm package

Installation

npm i ghostout-ui-kit

Usage

This kit comes with a variety of components that can be individually used. Follow the code samples to use in your React code.

Building Layouts

Columns allow you to build responsive layouts.

To build a layout, use as many Column components as desired inside of a Columns container.

import { Columns, Column } from  'ghostout-ui-kit'
...
<Columns>
    <Column>Column 1</Column>
    <Column>Column 2</Column>
    <Column>Column 3</Column>
    <Column>Column 4</Column>
</Columns>

Columns

Children Support? Yes
Supported Props
NameDescription
classNameOptional class name for styling.

Column

A single Column can be used to individually change the column size.

Children Support? Yes
Supported Props
NameDescription
modifiersClass name to represent the size of the column, for example: is-three-quarters, is-two-thirds, is-half. For a full reference of all supported class names refer to Bulma's column documentation
renderScrollbarsOptional Boolean that let's you control if a single column should display its own scrollbar. Use to create page layouts powered by columns.

Components

Alert

Use Alert blocks to notify the user of something.

Children Support? Yes
import { Alert } from  'ghostout-ui-kit'
...
<Alert>Test</Alert>
<Alert type="danger">An error has occurred</Alert>
<Alert type="info">Hey! Take a look at this.</Alert>
<Alert type="warning">Beware</Alert>
<Alert type="success">Success!</Alert>
Supported Props
NameDescription
typeOptional alert type that drives the alert's color. Supported values are danger, info, warning, and success

Button

Button component for, you know, clicking on it.

Children Support? Yes
import { Button } from  'ghostout-ui-kit'
...
<Button className="my-class" onClick={() => console.log('Clicked')}>Click Me!</Button>
<Button loading>Click Me!</Button>
Supported Props
NameDescription
classNameOptional class name for styling.
onClickThe onClick function.
loadingOptional boolean to display the button in a loading state and disable clicking.

ButtonGroup

Displays a set of buttons together.

Children Support? Yes
import { ButtonGroup, Button } from  'ghostout-ui-kit'
...
<ButtonGroup>
    <Button loading>Button 1</Button>
    <Button loading>Button 2</Button>
    <Button loading>Button 3</Button>
</ButtonGroup>

Card

Card component that act as a data container. Better used alongside the CardContent and CardHeader components.

Children Support? Yes
import { Card, CardHeader, CardContent } from  'ghostout-ui-kit'
...
<Card>
    <CardHeader title="This is a card" />
    <CardContent>
	    This is the card content.
    </CardContent>
</Card>
Supported Props
NameDescription
classNameOptional class name for styling.

Hero

A hero banner that can be used to showcase something.

Children Support? No
import { Hero } from  'ghostout-ui-kit'
...
<Hero  head={<div>Hero Head</div>}  body={<div>Hero Body</div>}  />
Supported Props
NameDescription
headReact component to be placed on the hero's header area.
bodyReact component to be placed on the hero's body area.

Dropdown

Dropdown to display a list of content.

Children Support? Yes*

*Children should be a list of DropdownItem components.

import { Dropdown, DropdownItem } from  'ghostout-ui-kit'
...
<Dropdown triggerContent={<span>Hover Over Me! <i  className="fas fa-caret-down"></i></span>}>
    <DropdownItem>Item 1</DropdownItem>
    <DropdownItem>Item 2</DropdownItem>
</Dropdown>
Supported Props
NameDescription
classNameOptional class name for styling.
triggerContentReact component to be displayed as the visible portion of this component.
1.12.0

5 years ago

1.11.0

6 years ago

1.10.4

6 years ago

1.10.3

6 years ago

1.10.2

6 years ago

1.10.1

6 years ago

1.10.0

6 years ago

1.9.1

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago