Skip to content

Semantic-Org/Semantic-UI-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stardust Code Climate Gemnasium Circle CI

A React component library based on the delightful and easy-to-use Semantic UI.

Getting Started

Hey, we're in development. Minor versions may introduce breaking changes until the v1.0 release. Please review Contributing before submitting a PR.

Installation

Install and save Stardust as a project dependency:

npm i stardust -S

Stardust is built with ES6 and ES7 and needs to be compiled. We use Babel with a .babelrc file. If you're using Webpack it's also possible to specify query in the loader configuration with Babel presets.

Usage

For more complete examples, check out the Doc Site.

ES6

import React, {Component} from 'react';
import {Button} from 'stardust';

export default class TryStardust extends Component {
  render() {
    return <Button>Hello</Button>;
  }
}

ES5

var React = require('react');
var stardust = require('stardust');
var Button = stardust.Button;

var TryStardust = React.createClass({
  render: function() {
    return <Button>Make it happen!</Button>;
  }
});

module.exports = TryStardust;

Development

Start by cloning this repo and installing dependencies:

git clone git@github.com:TechnologyAdvice/stardust.git
cd stardust
npm install               # or simply npm i

Once dependencies are installed, start the application with:

npm start

This will start a Webpack Dev Server which will watch your JS files for changes and automatically transpile, lint and provide source maps for development.

Commands

For a listing of development commands use the following:

npm run                   # list npm commands 
gulp help                 # list gulp commands

Releasing

On the latest clean master:

npm run release:major
npm run release:minor
npm run release:patch

Contributing

Before submitting PRs please review our Component Guidelines and Roadmap.