The views which interagte Semantic-Ui in react components.
A standard Advertisement.
<Ad className="medium rectangle">
<!-- Ad Code Here !-->
</Ad>
is equal to
<div class="ui ad medium rectangle">
<!-- Ad Code Here !-->
</div>
- className: The className would be part of the
class
attribute.
A standard Card.
<Card className="examplecard">
<Content>
<Header>Hello World</Header>
<div className="meta">
<span className="time">1 days ago</span>
<span className="category">Test</span>
</div>
</Content>
</Card>
is equal to
<div class="ui card examplecard">
<div class="content">
<div class="header">Hello World</div>
<div class="meta">
<span class="time">1 days ago</span>
<span class="category">Test</span>
</div>
</div>
</div>
- className: The className would be part of the
class
attribute.
A standard Comments.
<Comments className="examplecomments">
<Comment>
<a className="avatar">
<Image src="./example/example.jpg" />
</a>
<Content>
<a className="author">Lee</a>
</Content>
</Comment>
</Comments>
is equal to
<div class="ui Comments examplecomments">
<div class="Comment">
<a class="avatar">
<img class="ui image" src="./example/example.jpg"></img>
</a>
<div class="content">
<a class="author">Lee</a>
</div>
</div>
</div>
- className: The className would be part of the
class
attribute.
A standard Feed.
<Feed className="examplefeed">
<div className="event">
<Label>
<Image src="./example/example.jpg" />
</Label>
<Content>
I said hello.
</Content>
</div>
</Feed>
is equal to
<div class="ui feed examplefeed">
<div class="event">
<div class="ui label">
<img class="ui image" src="./example/example.jpg"></img>
</div>
<div class="content">
I said hello.
</div>
</div>
</div>
- className: The className would be part of the
class
attribute.
A standard Items.
<Items className="exampleitems">
<Item>
<Content>
<Header>The Best Thing</Header>
<div className="description">Nothing</div>
</Content>
</Item>
</Items>
is equal to
<div class="ui items exampleitems">
<div class="item">
<div class="content">
<div class="header">The Best Thing</div>
<div class="description">Nothing</div>
</div>
</div>
</div>
- className: The className would be part of the
class
attribute.
A standard Statistic.
<Statistic className="examplestatistic">
<div className="value">22</div>
<Lable>Breeds of Dog</Lable>
</Statistic>
is equal to
<div class="ui statistic examplestatistic">
<div class="value">22</div>
<div class="ui label">Breeds of Dog</div>
</div>
- className: The className would be part of the
class
attribute.