Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Components

Bottom Sheet

The bottom sheet is a slides from the bottom of the screen

banner-Bottom Sheet
Component Status Details

Status component contains a list of checks and completeness that has been tested and owned by each component

check-list-icon We don't use color as the only visual tool to convey information.
check-list-icon The component’s structure and properties include relevant options such as variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.check-list-icon The title is the component name that uses the frame base component template.check-list-icon The base component name contains: .Base & "Component Name" if there is more than one.check-list-icon All component properties use the Legion foundation.
check-list-icon We can change all the parts that are connected to the component base.check-list-icon The inside of the base component remains connected to the master component.check-list-icon All variant options are not damaged when we change from one to another.check-list-icon Overriding changes to components will not reset other variants.
check-list-icon Component's already has component specs documentation.

Status

Resources

Upcoming Upcoming

A BottomSheet is a UI component in mobile apps that slides up from the bottom of the screen to display additional information or actions. It can be either persistent, staying partially visible, or modal, covering the bottom of the screen and requiring dismissal to interact with the rest of the app.

Usage

The following is code to implement Rating component.

var showBottomSheet by remember { mutableStateOf(false) }
LgnButton(
onClick = {
showBottomSheet = !showBottomSheet
},
label = "Open BottomSheet"
)

Attributes

ParameterTypeDescription
visibleBooleanControls visibility in this bottom sheet.
onDismissRequest() -> UnitExecutes when the user clicks outside of the bottom sheet, after sheet animates to hidden.
modifierModifierThe [Modifier] to be applied to the bottom sheet.
sheetStateSheetStateThe state of the bottom sheet.
sheetMaxWidthDp[Dp] that defines what the maximum width the sheet will take.
shapeShapeThe shape of the bottom sheet.
tonalElevationDpThe tonal elevation of this bottom sheet.
colorsLgnBottomSheetColor[LgnBottomSheetColor] that will be used to resolve the colors used for this alert in different states.
dragHandle@Composable (() -> Unit)?Optional visual marker to swipe the bottom sheet.
windowInsetsWindowInsetsWindow insets to be passed to the bottom sheet window.
propertiesModalBottomSheetProperties[ModalBottomSheetProperties] for further customization of this modal bottom sheet’s behavior.
header@Composable (ColumnScope.() -> Unit)?The header to be displayed inside the bottom sheet.
footer@Composable (ColumnScope.() -> Unit)?The footer to be displayed inside the bottom sheet.
content@Composable ColumnScope.() -> UnitThe content to be displayed inside the bottom sheet.