Go Main page
Go Main page

Web components

cover

components

Functionalities Module

v.1.0.0 | Saturn

Usage

1
import { FunctionalitiesModule } from '@kubit-ui-web/react-components';

Props

Let's delve into the versatility of the FunctionalitiesModule component by examining all its avalaible props.

FunctionalitiesModule UnControlled

PropertyTypeDefaultDescription
variant
Required
String-Variant
defaultOpenBooleanfalseDefault open state in actionBottomSheet when mobile and tablet
defaultSelectedValueNumber or String-Option selected inside the tab
onOpenClose(value: Boolean) => void-Callback when opening or closing the actionBottomSheet
selectedValuenumber, String, null-Option selected inside the tab
tabsContainerAriaLabelString-Aria label for tabs container
tabsConfigFunctionalitiesModuleTabsConfig-Config for tabs
sectionsFunctionalitiesModuleSectionType-Array of sections with its options
hasTitleSectionBoolean-Boolean to show section title or not
triggerFunctionalitiesModuleTriggerType-Button that opens and closes actionBottomSheet
actionBottomSheetFunctionalitiesModuleActionBottomSheetType-ActionBottomSheet component
onOptionClick(value: String, number) => void-Callback for when an option is clicked
dataTestIdString-Test id
ctvFunctionalitiesModuleVariantStylesType-Modify styles for the default version of the component

FunctionalitiesModule Controlled

PropertyTypeDefaultDescription
variant
Required
String-Variant
defaultOpenBooleanfalseDefault open state in actionBottomSheet when mobile and tablet
onOpenClose(value: Boolean) => void-Callback when opening or closing the actionBottomSheet
tabsContainerAriaLabelString-Aria label for tabs container
tabsConfigFunctionalitiesModuleTabsConfig-Config for tabs
sectionsFunctionalitiesModuleSectionType-Array of sections with its options
hasTitleSectionBoolean-Boolean to show section title or not
triggerFunctionalitiesModuleTriggerType-Button that opens and closes actionBottomSheet
actionBottomSheetFunctionalitiesModuleActionBottomSheetType-ActionBottomSheet component
onOptionClick(value: String, number) => void-Callback for when an option is clicked
dataTestIdString-Test id
ctvFunctionalitiesModuleVariantStylesType-Modify styles for the default version of the component
openBooleanfalseBoolean to know if it is open or not
selectedValueNumber or String-Option selected inside the tab