Open In App

Semantic-UI Form Dropdown Content

Last Updated : 10 Mar, 2022
Comments
Improve
Suggest changes
23 Likes
Like
Report

Semantic UI is an 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.

The form is a container that has different types of input elements such as text fields, submit buttons, radio buttons, checkboxes, etc.

Semantic-UI Form is used to create the beautiful form using form classes. Form Dropdown Content is used to create a list of items and we can select an option from the series of options. We can also search any dropdown item using the input text field. We will use the dropdown class to create the dropdown.

In this article, we will discuss the Form Dropdown Content in Semantic-UI.

Semantic-UI Form Dropdown Content Class:

  • dropdown: This class is used to create the dropdown with some items.

Syntax:

<div class="ui form">
  <div class="field">
      <label>....</label>
      <div class="ui selection dropdown">
          ......
      </div>
  </div>
</div>

Example 1:  The following code demonstrates the Semantic-UI Form Dropdown Content.

Output:

Semantic-UI Form Dropdown Content
Semantic-UI Form Dropdown Content


Example 2: The following code demonstrates the Semantic-UI Form Dropdown Content by searching a dropdown item.

Output:

Semantic-UI Form Dropdown Content
Semantic-UI Form Dropdown Content

Reference: https://semantic-ui.com/collections/form.html#dropdown


Next Article

Similar Reads