Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ghostout-ui-kit

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghostout-ui-kit

ghostout-ui-kit React component

latest
Source
npmnpm
Version
1.12.0
Version published
Maintainers
1
Created
Source

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.

Keywords

react-component

FAQs

Package last updated on 03 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts