ResponsivePanePresetConfigs

Factory for standard drawer widths and mode-dependent elevation settings.

Properties

Link copied to clipboard

Default closed drawer width in density-independent pixels.

Link copied to clipboard
const val DEFAULT_OPENED_WIDTH_DP: Int = 300

Default opened drawer width in density-independent pixels.

Functions

Link copied to clipboard
fun defaultWidthPx(paneState: PaneState): Int

Returns the default width for paneState, converted from dp to pixels by the density helper.

Link copied to clipboard

Returns the elevation tier for mode and paneState.

Link copied to clipboard

Creates a preset configuration for mode and paneState.

Link copied to clipboard

Creates a configuration using the defaults for tier.