Go Main page
Go Main page

Web components

cover

components

Action bottom sheet

v.1.0.0 | Saturn

Import

12345678910
import { ActionBottomSheet } from '@kubit-ui-web/react-components';
<ActionBottomSheet
  variant="DEFAULT_NO_ANIMATION"
  title={{ content: 'Title' }}
  closeIcon={{
    icon: 'ICON_X',
    altText: 'Close icon alt text',
    ['aria-label']: 'Aria label button',
  }}
  open={true}

Props

Let's delve into the versatility of the ActionBottomSheet component by examining its available props:

Note that the ActionBottomSheet component's default styling properties can be moderately adjusted through the ctv an cts props, 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.

Uncontrolled

PropertyDescriptionTypeDefault
variant
Required
Current variant of ActionBottomSheetString-
open
Required
Indicates if ActionBottomSheet is open or notBooleanfalse
children
Required
Content to place inside ActionBottomSheetReactNode-
popoverObject to configure the popover in case it is necessaryActionBottomPopoverType-
blockedIf it is true, the component won't be closed by clicking outsideBooleanfalse
closeIconAdd close iconIElementOrIcon-
titleTitle od the ActionBottomSheetActionBottomSheetTextType-
hasHeaderIt indicates if header is showedBooleantrue
headerContentContent to place at headerReactNode-
heightHeight applied to paren containerString-
dataTestIdTest id of the actionBottomSheet. Internal components will concatenate from this test id.String-
ctvModify styles for the default version of the componentActionBottomSheetVariantStylesType-

Controlled

PropertyDescriptionTypeDefault
variant
Required
Current variant of ActionBottomSheetString-
open
Required
Indicates if ActionBottomSheet is open or notBooleanfalse
children
Required
Content to place inside ActionBottomSheetReactNode-
popoverObject to configure the popover in case it is necessaryActionBottomPopoverType-
blockedIf it is true, the component won't be closed by clicking outsideBooleanfalse
closeIconAdd close iconIElementOrIcon-
titleTitle od the ActionBottomSheetActionBottomSheetTextType-
hasHeaderIt indicates if header is showedBooleantrue
headerContentContent to place at headerReactNode-
heightHeight applied to paren containerString-
dataTestIdTest id of the actionBottomSheet. Internal components will concatenate from this test id.String-
ctvModify styles for the default version of the componentActionBottomSheetVariantStylesType-