Open In App

Semantic-UI Segment Disabled State

Last Updated : 19 Oct, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing.

Semantic UI has a bunch of components for user interface design. One of them is the Segments component. Segments are used to display different sections of relatable content. Depending on the requirements of the usage of segments there are different states of it. One of them is the disabled state.

Semantic UI Segment Disabled State: The user might need to show a disabled segment by default. The user might need to display some segments in UI whose values are not to be changed or the person does not have the access to interact with it. In that case, a disabled state comes in handy.

Semantic UI Segment Disabled State Class:

  • disabled: This class is used to specify the disabled state of segments.

Syntax:

<div class="ui disabled segment">
 .......
</div>

These examples demonstrate a segment or group of segments in a disabled state by using the disabled class.

Example 1 :

HTML




<!DOCTYPE html>
<html>
   <head>
      <link rel="stylesheet"
            href=
   </head>
   <body>
      <div class="ui container">
         <br/><br/>
         <h2 class="ui header green">GeeksforGeeks</h2>
         <strong>Semantic UI Segment Disabled State</strong>
         <br>
         <hr>
         <br>
         <div class="ui disabled segment">
            <center>
               <h3>Welcome to geeksforgeeks.</h3>
               <p>Learn anything you want</p>
 
               <p>
                  Get tutorial of anything
                  related to computer science.
               </p>
               <p>Courses on programming</p>        
               <p>Solve programming problems.</p>
               <p>Help other by writing articles.</p>
 
            </center>
         </div>
      </div>
   </body>
</html>


Output:

Semantic-UI Segment Disabled State

Semantic-UI Segment Disabled State

Example 2:

HTML




<!DOCTYPE html>
<html>
   <head>
      <link rel="stylesheet"
            href=
   </head>
   <body>
      <div class="ui container">
         <br><br>
         <h2 class="ui header green">GeeksforGeeks</h2>
         <strong> Semantic UI Segment Disabled State</strong>
         <br>
         <hr>
         <br>
         <div class="ui disabled segments">
            <div class="ui disabled red segment">
               <p>Data Structure</p>
            </div>
            <div class="ui disabled green segment">
               <p>Web Programming</p>
            </div>
            <div class="ui disabled blue segment">
               <p>Competitive Programming</p>
            </div>
         </div>
      </div>
   </body>
</html>


Output :

Semantic-UI Segment Disabled State

Semantic-UI Segment Disabled State

Reference:  https://semantic-ui.com/elements/segment.html#disabled



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads