Giter Club home page Giter Club logo

octagon's Introduction

react-octagon

Codeship Status for Tripwire/octagon semantic-release

octagon is a react component library. see the latest interactive library documentation here.

this package provides:

  • a custom semantic-ui theme,
  • a subset of semantic-ui-react (SUIR) components,
  • a set of additional react components to facilitate Tripwire UI.

If you are looking for a ground up framework, please instead jump directly to semantic-ui-react, as this project is generally just an opionionated implementation of the SUI ecosystem.

install

npm install --save react-octagon or yarn add --dev react-octagon

usage - react component library

octagon imports, occasionally wraps, and re-exports piece-wise components from semantic-ui-react. you may generally refer to those docs for API usage.

To use it:

  • add octagon's CSS into your app using whatever css bundling you prefer
    • your build system must be able to bundle static assets. that is, this code exports components that have code like require('./widget.css')
  • import components from the lib
import 'react-octagon/lib/styles/semantic.css'
import Segment from 'react-octagon/lib/components/suir/Segment'
import FavoriteButton from 'react-octagon/lib/components/FavoriteButton'

class MyWigdet () {
  render () {
    return (
      <Segment>
        <FavoriteButton isFavorited />
      </Segment>
    )
  }
}

development

  • clone this repository
  • run yarn
  • run yarn start
  • open the URL to play w/ components as you develop them

now you're off to the races ๐Ÿ‡! theme changes, components, & examples will update automatically. Make sure that your examples source components from within the src/ dir!

for information on how to adjust the theme styles, see THEMING.md.

react component api distribution

useful if you've yarn linked your front-end project with octagon and want to iterate on components without suffering the build/publish lifecycle for octagon. You must run yarn run build to get a fresh set of react components!

contributing

want to contribute? please see THEMEING.md && CONTRIBUTING.md.

octagon's People

Contributors

cdaringe avatar eddier avatar jhegg avatar ggascoigne avatar cmeinsch avatar shoof1072 avatar greenkeeperio-bot avatar pfaffle avatar jtruongtripwire avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.