Get Started

Install

Semantic UI React provides React components while Semantic UI provides themes as CSS stylesheets. Install the React components and choose a theme that suits your needs.

Option 1: Package Manager

React components can be installed via yarn or npm:

After install, import the minified CSS file in your app's entry file:

Themes from Semantic UI >=2.3.x require Semantic UI React >=0.81.0.

The Semantic UI CSS package is automatically synced with the main Semantic UI repository to provide a lightweight CSS only version of Semantic UI.

If you are using TypeScript, you don't need to install anything, typings are included with the package.

Option 2: CDN (no bundler)

This is the quickest way to get started, just add this link and script tag to the <head> of your index.html file.

Custom themes

Detailed documentation on Semantic UI theming is provided in our Theming guide.

Supported Bundling Options

Semantic UI React is fully supported by all modern JavaScript bundlers.

Create React App

Semantic UI React is fully compatible with create-react-app and works out the box. Setting up of custom theme is covered in Theming guide.

Webpack 4

Semantic UI React is fully supported by Webpack 4. Please ensure that you build your app in production mode before release. Semantic UI React includes several optimizations in production mode, such as stripping propTypes from your build.

Examples

For examples on how to import and use Semantic UI React components, click the code icon () next to any example. Here are a few direct links:

Blazing deployments by Vercel.