Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone been able to setup create react app with semantic-ui?

If so, please share folder structure (where is semantic path) and an example of importing a component.

like image 481
kevin Avatar asked Oct 01 '16 15:10

kevin


People also ask

Is Semantic UI abandoned?

Semantic UI is not dead. There is a community that wants to keep it going. I think it would be helpful to create an RFC repo to discuss future direction of the project and the planning of the implementations of the decisions we make.

Is material UI better than semantic UI?

According to the StackShare community, Material-UI has a broader approval, being mentioned in 69 company stacks & 80 developers stacks; compared to Semantic UI React, which is listed in 16 company stacks and 22 developer stacks.

Is Semantic UI React free?

Semantic UI is a free open source project already used in multiple large scale production environments.

Is Semantic UI customizable?

Semantic provides several ways to modify UI elements. For big projects that rely on building a personalized brand-aware visual language, site themes allow you to modify the underlying variables powering Semantic UI, as well as specify alternative overriding css.


1 Answers

I know this question is rather "old" (in a front-end dev sense), but Semantic UI now has official React integration and bindings:

Semantic UI React

https://react.semantic-ui.com/

Among its key features (from the landing page):

jQuery Free

All jQuery functionality has been re-implemented in React.

Declarative API

Declarative APIs provide for robust features and prop validation.

Augmentation

Control the rendered HTML tag, or render one component as another component. Extra props are passed to the component you are rending as.

Shorthand Props

Shorthand props generate markup for you, making many use cases a breeze. All object props are spread on the child components.

Sub Components

Sub components give you complete access to the markup. This is essential for flexibility in customizing components.

Auto Controlled State

Our stateful components self manage their state out of the box, without wiring. Dropdowns open on click without wiring onClick to the open prop. The value is also stored internally, without wiring onChange to value.

Installation

$ npm install semantic-ui-react --save
$ npm install semantic-ui-css --save

or if you prefer Yarn:

$ yarn add semantic-ui-react
$ yarn add semantic-ui-css

After installing, include this line in your index.js file:

import 'semantic-ui-css/semantic.min.css';
like image 135
Ryan Avatar answered Oct 12 '22 17:10

Ryan