1

Semantic-UI Popup Variations

 1 month ago
source link: https://www.geeksforgeeks.org/semantic-ui-popup-variations/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Semantic-UI Popup Variations

Semantic UIIntroduction to Semantic UI

Semantic-UI Button

Semantic-UI | Container

Semantic-UI Divider

Semantic-UI | Flag

Semantic-UI Header

Semantic-UI | IconSemantic-UI Icon Set

Semantic-UI Image

Semantic-UI Input

Semantic-UI Label

Semantic-UI List

Semantic-UI Loader

Semantic-UI Placeholder

Semantic-UI Rail

Semantic-UI Reveal

Smentic-UI Segment

Semantic-UI Step

Semantic-UI Breadcrumb

Smenatic-UI Form

Semantic-UI Varying GridsSemantic-UI Responsive Grids

Semantic-UI Menu

Semantic-UI Message

Semantic-UI Table

Semnatic-UI Advertisement

Semantic-UI Card

Semantic-UI Comment

Semantic-UI Feed

Semantic-UI Item

Semantic-UI Statistics

Semantic-UI Accordion

Smenatic-UI Checkbox

Semantic-UI Dimmer

Semantic-UI Dropdown

Semantic-UI | Embed

Smenatic-UI Model

Semantic-UI Progress

Smenatic-UI Rating

Semantic-UI Search

Semantic-UI Shape

Semantic-UI Sidebar

Semantic-UI Sticky Push

Semantic-UI Tab

Semantic-UI Transition

Semantic-UI Popup Variations

Semantic UI is the open-source framework that used CSS and jQuery to make our websites look beautiful and responsive. It has predefined classes like bootstrap for use to make our website more interactive. It has some pre-built semantic components and we can use these components to create a responsive website.

Semantic-UI Popup is used to show some extra information to the user. In this article, we will discuss Popup Variations in Semantic-UI.

Semantic-UI Popup Variations:

  • Basic: This variation is used to create a basic popup.
  • Width: This variation is used to set the width of the popup.
  • Fluid: This variation takes the entire width of the offset container.
  • Size: This variation is used to set the size of the popup.
  • Flowing: This variation has no maximum width.
  • Inverted: This variation has its color inverted.

Semantic-UI Popup Variations Classes:

  • basic: This class is used to create a basic popup.
  • wide: This class is used to create a wide popup.
  • very wide: This class is used to create a very wide popup.
  • fluid: This class is used to create an entire width popup.
  • mini: This class is used to create a mini-size popup.
  • tiny: This class is used to create a tiny size popup.
  • small: This class is used to create small size popup.
  • large: This class is used to create large size popup.
  • flowing: This class is used to create a flowing popup.
  • inverted: This class is used to create a color inverted popup.

Syntax:

<div class="ui icon button" 
     data-content="" 
     data-variation="Popup-Variations-Class">
  <i class="add icon"></i>
</div>

Example 1: The following code demonstrates the Semantic-UI Popup Basic, Width, and Fluid Variations.

<!DOCTYPE html>
<html>
<head>
<title> Semantic-UI Popup Variations </title>
<link href=
rel="stylesheet"/>
<script src=
</script>
<script src=
</script>
</head>
<body>
<div class="ui container center aligned">
<h2 class="ui green header"> GeeksforGeeks </h2
<h3> Semantic-UI Popup Variations </h3>
<strong>
Basic:
</strong> <br>
<div class="ui icon button"
data-content="GeeksforGeeks"
data-variation="basic">
<i class="cloud download icon"></i>
</div> <br> <br>
<strong>
Width:
</strong> <br>
<i class="circular play icon link"
data-content=
"A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science"
data-variation="wide">
</i>
<i class="circular play icon link"
data-content=
"A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science"
data-variation="very wide">
</i> <br> <br>
<strong>
Fluid:
</strong> <br>
<div class="ui button">
Fluid Popup
</div>
<div class="ui fluid popup">
<div class="ui three column divided
center aligned grid">
<div class="column">GFG 1</div>
<div class="column">GFG 2</div>
<div class="column">GFG 3</div>
</div>
</div>
<script>
$('.icon').popup({});
$('.button').popup({});
</script>
</body>
</html>

Output:

20220310120748.gif

Example 2: The following code demonstrates the Semantic-UI Popup Size, Flowing, and Inverted Variations

<!DOCTYPE html>
<html>
<head>
<title> Semantic-UI Popup Variations </title>
<link href=
rel="stylesheet"/>
<script src=
</script>
<script src=
</script>
</head>
<body>
<div class="ui container center aligned">
<h2 class="ui green header"> GeeksforGeeks </h2
<h3> Semantic-UI Popup Variations </h3>
<strong>
Size:
</strong> <br>
<i class="circular play icon link"
data-content="GeeksforGeeks Mini"
data-variation="mini">
</i>
<i class="circular play icon link"
data-content="GeeksforGeeks Tiny"
data-variation="tiny">
</i>
<i class="circular play icon link"
data-content="GeeksforGeeks Small"
data-variation="small">
</i>
<i class="circular play icon link"
data-content="GeeksforGeeks Large"
data-variation="large">
</i> <br> <br>
<strong>
Flowing:
</strong> <br>
<i class="circular add icon link"
data-content=
"It contains well written, well thought
and well explained computer science and
programming articles"
data-variation="flowing"
data-position="top center">
</i> <br><br>
<strong>
Inverted:
</strong> <br>
<i class="circular add icon link"
data-content= "GeeksforGeeks"
data-variation="inverted"
data-position="top center">
</i>
</div>
<script>
$('.icon').popup({});
</script>
</body>
</html>

Output:

20220310122629.gif

Reference: https://semantic-ui.com/modules/popup.html

“This course was packed with amazing and well-organized content! The project-based approach of this course made it even better to understand concepts faster. Also the instructor in the live classes is really good and knowledgeable.”- Tejas | Deutsche Bank

With our revamped Full Stack Development Program: master Node.js and React that enables you to create dynamic web applications.

So get ready for salary hike only with our Full Stack Development Course.

Last Updated : 20 Apr, 2022
Like Article
Save Article
Share your thoughts in the comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK