Go Main page
Go Main page

Web components

cover

components

Olive Menu

v.1.0.0 | Saturn

Import

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

Props

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

Note that the oliveMenu component's default styling properties can be moderately adjusted through the ctv prop, in case the project do not need a full variant customization. This limited customization ensures a seamless balance between predefined aesthetic and your specific design requirements. Additionally, it's essential to highlight that Kubit always provided the option to full customized all the variants that your project needs.

PropertyTypeDefaultDescription
variant
Required
String-Current variant of OliveMenu
onOpenClose(open: boolean, event?: MouseEvent) => void-Function called when OliveMenu is closed or opened
triggerOliveMenuTriggerType-Trigger button
screenReaderTextString-Value that It is read for screenReader when oliveMenu is opened
actionBottomSheetStructureOliveMenuActionBottomSheetStructure-Configuration for ActionBottomSheet
popoverOliveMenuPopover-Configuration for Popover
sectionsOliveMenuListOptions-Olive menu sections
onClick(value) => void-Function called when user clicks on an option
selectedValueString or Number-Actual value selected
onOptionClick(value?: string or number) => void-Function called when an option is clicked
dataTestIdString-Id for testing
ctvOliveMenuGlobalStylesType-Modify styles for the default version of the component