Ecme logoEcme logo
Dashboard
    Ecommerce
    Project
    Marketing
    Analytic
Network
    BGP
      Peer
      RTBH
DPI
    Overview
    Traffic Logs
    Analysis
      IP Analysis
      Domain Check
      nav.dpi.analysis.unmapped-asns
    Threats
      Blacklists
      nav.dpi.threats.feeds
    Configuration
      Senders
      Ignored Domains
Concepts
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
UI Components
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Carousel
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
Authentication
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
Others
    Access Denied
    Landing
Guide
    Documentation
    Shared Component
    Utilities
    Changelog
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy

Segment

Segments display a group of related options that allow user toggled on or off.

Basic

Basic usage of Segment.

Size

Segment have exact size variation as Button

Multiple Selection

Segment support multiple selaction, by setting selectionType to multiple.

Disabled

Make Segment Item inactive by adding the disabled prop to.

Custom Segment

Segment Item allow us to render prop as children to create a more custom look options.
Personal

The plan for personal.

Team

The plan for team

Business

Talk to us for business plan.

Controlled

Some example of controlled Segment.
Single Selection
Multiple Selection

API

Segment
PropDescriptionTypeDefault
defaultValueInitial value for uncontrolled Segmentstring[]-
onChangeCallback when Segment value is changed(segmentValue: string | string[]) => void-
selectionTypeWhether a single or multiple items can be selected at a time'single' | 'multiple''single'
sizeSize of all segment item.'lg' | 'md' | 'sm' | 'xs''md'
valueControlled value of the Segment item to activatestring[]-
Segment.Item
PropDescriptionTypeDefault
childrenChildren of Segment item({active: boolean, disabled: boolean, value: string[], ref: string, onSegmentItemClick: () => void}) => ReactNode | ReactNode-
disabledWhether to disable Segment itemboolean-
sizeSize of the segment item.'lg' | 'md' | 'sm' | 'xs''md'
valueAn unique value for Segment itemstring-
TABLE OF CONTENT
  • Basic
  • Size
  • Multiple Selection
  • Disabled
  • Custom Segment
  • Controlled