The elements which interagte Semantic-Ui in react components.
A standard Button.
<Button className="examplebutton" color="red" onClick={this._onClick} disabled={true}></Button>
You also can write like this:
<Button className="red disabled examplebutton" onClick={this._onClick}></Button>
are equal to
<div class="ui button red disabled examplebutton"></div>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - color: The color is equal to Semantic-Ui color.
- onClick: The click event.
- active: This is a booling type. If
true
, theactive
would be part ofclass
attribute. - disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute. - loading: This is a booling type. If
true
, theloading
would be part ofclass
attribute.
The group of Buttons.
<Buttons className="examplebuttons">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Buttons>
are equal to
<div class="ui buttons examplebuttons">
<div class="ui button">One</div>
<div class="ui button">Two</div>
<div class="ui button">Three</div>
</div>
- className: The className would be part of the
class
attribute.
A standard Container.
<Container className="examplecontainer"></Container>
is equal to
<div class="ui container examplecontainer"></div>
- className: The className would be part of the
class
attribute.
A standard Divider.
<Divider className="exampledivider"></Divider>
is equal to
<div class="ui divider exampledivider"></div>
- className: The className would be part of the
class
attribute.
A standard Flag.
<Flag className="tw" onClick={this._onClick}></Flag>
is equal to
<i class="flag tw"></i>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - onClick: The click event.
A standard Header.
<Header className="exampleheader" color="red" type="div" onClick={this._onClick} disabled={true}></Header>
You also can write like this:
<Header className="red disabled exampleheader" type="div" onClick={this._onClick}></Header>
are equal to
<div class="ui header red disabled exampleheader"></div>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - color: The color is equal to Semantic-Ui color.
- type: Generate the html tag.
type="div"
would be<div><\div>
.type="link"
would be<a><\a>
- onClick: The click event.
- disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute.
A standard Icon.
<Icon className="cloud" color="red" onClick={this._onClick} disabled={true}></Icon>
You also can write like this:
<Icon className="red disabled cloud" onClick={this._onClick}></Icon>
are equal to
<i class="icon red disabled cloud"></i>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - color: The color is equal to Semantic-Ui color.
- onClick: The click event.
- disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute. - loading: This is a booling type. If
true
, theloading
would be part ofclass
attribute.
A standard Image.
<Image className="medium" src="./example/example.jpg" disabled={true}></Image>
is equal to
<img class="ui image medium disabled" src="./example/example.jpg"></img>
- className: The className would be part of the
class
attribute. - src: The image's source file.
- disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute.
A standard Input.
<Input className="exampleinput" error={true} placeholder="Search..." type="text"></Input>
is equal to (If you didn't have children component, it would auto generate <input>
tag.)
<div class="ui input error exampleinput">
<input placeholder="Search..." type="text"></input>>
</div>
- className: The className would be part of the
class
attribute. - loading: This is a booling type. If
true
, theloading
would be part ofclass
attribute. - focus: This is a booling type. If
true
, thefocus
would be part ofclass
attribute. - error: This is a booling type. If
true
, theerror
would be part ofclass
attribute.
A standard Label.
<Label className="examplelabel" color="red" type="div"></Label>
You also can write like this:
<Label className="red examplelabel" type="div"></Label>
are equal to
<div class="ui label red examplelabel"></div>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - color: The color is equal to Semantic-Ui color.
- type: Generate the html tag.
type="div"
would be<div><\div>
.type="link"
would be<a><\a>
- onClick: The click event.
A standard List.
<List className="examplelist"></List>
is equal to
<div class="ui list examplelist"></div>
- className: The className would be part of the
class
attribute.
A standard Loader.
<Loader className="exampleloader" disabled={true}></Loader>
is equal to
<div class="ui loader disabled exampleloader"></div>
- className: The className would be part of the
class
attribute. - active: This is a booling type. If
true
, theactive
would be part ofclass
attribute. - disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute.
A standard Rail.
<Rail className="examplerail"></Rail>
is equal to
<div class="ui rail examplerail"></div>
- className: The className would be part of the
class
attribute.
A standard Reveal.
<Reveal className="examplereveal" disabled={true}></Reveal>
is equal to
<div class="ui reveal disabled examplereveal"></div>
- className: The className would be part of the
class
attribute. - disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute.
A standard Segment.
<Segment className="examplesegment" color="red" disabled={true}></Segment>
You also can write like this:
<Segment className="red disabled examplesegment"></Segment>
are equal to
<div class="ui segment red disabled examplesegment"></div>
and register the function(this._onClick)
on click event.
- className: The className would be part of the
class
attribute. - color: The color is equal to Semantic-Ui color.
- onClick: The click event.
- disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute. - loading: This is a booling type. If
true
, theloading
would be part ofclass
attribute.
A standard Steps/Step.
<Steps className="examplestep">
<Step disabled={true}>123</Step>
</Steps>
is equal to
<div class="ui steps examplestep">
<div class="step disabled">123</div>
</div>
- className: The className would be part of the
class
attribute. - active: This is a booling type. If
true
, theactive
would be part ofclass
attribute. - disabled: This is a booling type. If
true
, thedisabled
would be part ofclass
attribute. - completed: This is a booling type. If
true
, thecompleted
would be part ofclass
attribute.