The official Semantic UI + React integration.
Hey, we're in development. Prior to reaching v1.0.0:
- MINOR versions represent breaking changes
- PATCH versions represent fixes and features
- There are no deprecation warnings between releases
- You should consult the CHANGELOG and related issues/PRs for more information
Help shape this library by weighing in on our RFC (request for comments) issues.
- Install
- Usage
- Debugger
- How Can I Help?
- [v1.0 Migrations](#v10-migrations15)
- [Missing Components](#missing-components17)
- [Help Wanted Label](#help-wanted-label4)
- Our Principles
- Support
- Releasing
- Credit
npm i semantic-ui-react -S
App.js
import React from 'react'
import { Button } from 'semantic-ui-react'
export default () => (
<Button>Hello</Button>
)
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Semantic-UI-React</title>
<!-- SUI CSS -->
<link href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.x.x/semantic.css" rel="stylesheet">
</head>
<body>
<script src="bundle.js"></script>
</body>
</html>
We then use Webpack to create bundle.js
from App.js
and include it in index.html
.
For more complete examples, check out the Doc Site.
We use the debug module for debugging. You can turn debugging on and off via the localStorage.debug
flag from the browser console. See the debug docs for more.
localStorage.debug = 'semanticUIReact:*' // default, debug all components
localStorage.debug = 'semanticUIReact:dropdown' // debug only the dropdown
localStorage.debug = null // turn debug off
Once you change the flag, you need to refresh your browser to see the changes in debug output.
Our CONTRIBUTING.md is a step-by-step setup and development guide. It is meant to be read from top to bottom. Once you're up to speed, each issue here includes more information on how you can help:
Have a look at the task list on the issue to see where you can jump in.
We're seeking component parity with Semantic UI, plus some addons. There is an issue for every missing component, labeled enhancement
help wanted
. Just comment on the issue you'd like to take.
Any other issue labeled help wanted
is ready for a PR.
TechnologyAdvice has been dogfooding Semantic-UI-React in production since fall of 2015. These are the guiding principles that have developed as a result:
- No jQuery dependency
- No animation dependencies
- Reuse SUI CSS transitions
- Complete keyboard support
- Complete SUI component definition support
- Completely documented
- Completely tested
- Abstract away HTML markup intricacies
Elements | Collections | Views | Modules | Behaviors |
---|---|---|---|---|
✓ Button | ✓ Breadcrumb | Advertisement | ✓ Accordion | Form Validation |
✓ Container | ✓ Form | ✓ Card | ✓ Checkbox | API (NA) |
✓ Divider | ✓ Grid | ✓ Comment | Dimmer | Visibility (NA) |
✓ Flag | ✓ Menu | ✓ Feed | ✓ Dropdown | |
✓ Header | ✓ Message | ✓ Item | Embed | |
✓ Icon | ✓ Table | ✓ Statistic | ✓ Modal | |
✓ Image | Nag | |||
✓ Input | ✓ Popup | |||
✓ Label | ✓ Progress | |||
✓ List | ✓ Rating | |||
✓ Loader | ✓ Search | |||
✓ Rail | Shape | |||
✓ Reveal | Sidebar | |||
✓ Segment | Sticky | |||
✓ Step | Tab | |||
Transition |
On the latest clean master
:
npm run release:major
npm run release:minor
npm run release:patch
Made with ❤️ @TechnologyAdvice, a ridiculous place to work.
Big thanks to our contributors, especially:
- @jamiehill for early engineering and support
- @jcarbo for thoughtful engineering and continual support
- @layershifter for bringing momentum and continual support