apeman-react-grid

apeman react package for grid display.

Stats

StarsIssuesVersionUpdatedCreatedSize
apeman-react-grid
3.0.35 years ago6 years agoMinified + gzip package size for apeman-react-grid in KB

Readme

apeman-react-grid

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for grid display.

Installation

$ npm install apeman-react-grid --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {ApGrid, ApGridItem, ApGridStyle} from 'apeman-react-grid'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApGridStyle></ApGridStyle>
        <ApGrid>
          <ApGridItem text="foo"></ApGridItem>
          <ApGridItem text="bar"></ApGridItem>
          <ApGridItem text="baz"></ApGridItem>
        </ApGrid>
      </div>
    )
  }
})

Components

ApGridItem

Props

Name Type Default Description
title string null
text string null
width number null
height number null
selected bool false

ApGridStyle

Props

Name Type Default Description
style object {}
itemSize number 82
highlightColor string ApStyle.DEFAULT_HIGHLIGHT_COLOR
detailColor '#444'
backgroundColor ApStyle.DEFAULT_BACKGROUND_COLOR

ApGrid

Props

Name Type Default Description
selectedIndex number -1
detail node null
animationDuration number 300

License

This software is released under the MIT License.

Links

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.