logo

Lumina Design

ComponentsIcons
Installation
AccordionAppHeaderAutoCompleteAvatarBottomNavigationBreadcrumbButtonCarouselCheckboxChipColumnDataTableDatePickerDialogFloatingButtonFloatingMenuInputFieldLinkMenuDropdownNextToastProviderProgressRadioButtonRangeSliderResizablePanelSelectDropDownSideBarTabSelectTabsTagTextTextAreaThemeProviderToastProviderToggleInputToggleSwitchTooltip

ToggleInput

The ToggleInput component is a form element that allows users to switch between two states, typically representing a binary choice such as 'on' or 'off'. It’s commonly used in settings panels, feature switches, or anywhere a simple, clear toggle is needed. For example, in a user settings page, ToggleInputs could be used to enable or disable notifications, switch between different modes, or activate specific features.

Code

import ToggleInput from "@lumina-design/core/ToggleInput";
    
<ToggleInput
  id="developer"
  className="developer"
  name="developer"
  checked={toggleFlag}
  onChange={(flag) => toggleInputFlag(flag)}
/>