logo

Lumina Design

ComponentsIcons
Installation
AccordionAppHeaderAutoCompleteAvatarBottomNavigationBreadcrumbButtonCarouselCheckboxChipColumnDataTableDatePickerDialogFloatingButtonFloatingMenuInputFieldLinkMenuDropdownNextToastProviderProgressRadioButtonRangeSliderResizablePanelSelectDropDownSideBarTabSelectTabsTagTextTextAreaThemeProviderToastProviderToggleInputToggleSwitchTooltip

TabSelect

The TabSelect component is a tab-based navigation element that allows users to switch between different views or sections within an application. It’s ideal for situations where content is divided into categories or steps, such as in multi-step forms, settings panels, or data dashboards. TabSelect enhances the user experience by making it easy to navigate through different parts of the interface without reloading the page or losing context.

YES
NO

Code

import TabSelect from "@lumina-design/core/TabSelect";
    
<TabSelect
  onChange={(val) => setLikesSports(val)}
  className="tab-select"
  labelClassName="tab-select-label"
  optionClassName="tab-select-option"
  activeOptionClassName="selected-tab"
  options={[
    {
      text: "YES",
      value: true,
      icon: null
    },
    {
      text: "NO",
      value: false,
      icon: null
    }
  ]}
  value={likesSports}
>
  <label>Are you interested in adventure sports?</label>
</TabSelect>