Package-level declarations

Types

Link copied to clipboard

Размеры и отступы компонента Accordion

Link copied to clipboard

Билдер для AccordionDimensions

Link copied to clipboard

Расположение иконки

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для AccordionItemColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Стиль компонента Accordion

Link copied to clipboard
Link copied to clipboard
data class AdjustmentCornerSize(other: CornerSize, adjustmentPx: Float) : CornerSize, InspectableValue

Подвид CornerSize, который умеет корректировать другие CornerSize

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента Autocomplete

Link copied to clipboard
interface AvatarColors

Цвета компонента Avatar

Link copied to clipboard

Builder для AvatarColors

Link copied to clipboard
data class AvatarDimensions(val statusSize: Dp = 8.dp, val statusOffset: Offset = Offset.Zero, val actionSize: Size? = null, val size: Dp? = null)

Размеры и отступы компонента Avatar

Link copied to clipboard

Билдер для AvatarDimensionValues

Link copied to clipboard

Размеры и отступы Avatar

Link copied to clipboard
data class AvatarGroupDimensions(val itemOffset: Dp = AvatarDefaults.DefaultItemOffset, val itemSpacing: Dp = AvatarDefaults.DefaultItemSpacing)

Размеры и отступы компонента AvatarGroup

Link copied to clipboard
Link copied to clipboard

Размеры и отступы компонента AvatarGroup

Link copied to clipboard

Скоуп дочерних элементов AvatarGroup

Link copied to clipboard

Скоуп AvatarGroup

Link copied to clipboard

Стиль компонента AvatarGroup

Link copied to clipboard
sealed class AvatarPlaceholder

Заглушка для аватара

Link copied to clipboard

Пользовательский статус

Link copied to clipboard
interface AvatarStyle : Style

Стиль компонента Avatar

Link copied to clipboard
Link copied to clipboard

Цвета компонента

Link copied to clipboard

Builder для BadgeColors.

Link copied to clipboard

Размеры и отступы, которые используются внутри Badge.

Link copied to clipboard

Builder для BadgeDimensions.

Link copied to clipboard

Стиль Badge

Link copied to clipboard

Builder стиля BadgeSolid

Link copied to clipboard

Builder для ButtonColors.

Link copied to clipboard

Билдер размеров для BasicButton

Link copied to clipboard

Builder стиля базовой кнопки.

Link copied to clipboard

Режимы размещения handle относительно границы ModalBottomSheet

Link copied to clipboard

Цвета кнопки

Link copied to clipboard

Размеры кнопки

Link copied to clipboard
data class ButtonDimensions(val height: Dp = 48.dp, val paddingStart: Dp = 0.dp, val paddingEnd: Dp = 0.dp, val minWidth: Dp = 84.dp, val iconSize: Dp = 24.dp, val spinnerSize: Dp = 22.dp, val spinnerStrokeWidth: Dp = 2.dp, val iconMargin: Dp = 6.dp, val valueMargin: Dp = 4.dp)

Размеры и отступы, которые используются внутри кнопки.

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Ориентация группы кнопок ButtonGroup

Link copied to clipboard

Cкоуп ButtonGroup

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Иконки кнопки

Link copied to clipboard

Способы группировки контента в кнопке при помощи отступов. В основном контролирует отображение текста Label-Value.

Link copied to clipboard

Стиль кнопки Button

Link copied to clipboard

Цвета Card

Link copied to clipboard

Builder для CardColors

Link copied to clipboard

Внутренние отступы контента

Link copied to clipboard

Builder для CardDimensions

Link copied to clipboard

Способы группировки контента в карточке

Link copied to clipboard

Стиль Card

Link copied to clipboard

Builder стиля CardStyle

Link copied to clipboard

Расположение кнопок прокрутки Carousel

Link copied to clipboard

Размеры и отступы компонента карусели.

Link copied to clipboard

Билдер для создания CarouselDimensions с fluent-интерфейсом. Позволяет поэтапно настроить размеры и отступы карусели.

Link copied to clipboard

Стиль компонента карусели. Определяет визуальное оформление всех составных частей карусели: индикаторов страниц, кнопок навигации и их размещение.

Link copied to clipboard

Билдер для создания CarouselStyle. Позволяет настроить все параметры стиля карусели.

Link copied to clipboard
interface CellColors

Цвета компонента Cell

Link copied to clipboard

Билдер для CellColors

Link copied to clipboard

Размеры и отступы компонента Cell

Link copied to clipboard

Билдер для CellDimensions

Link copied to clipboard

Выравнивание контента внутри Cell

Link copied to clipboard
interface CellStyle : Style

Стиль компонента Cell

Link copied to clipboard

Билдер стиля CellStyle

Link copied to clipboard

Цвета компонента CheckBox

Link copied to clipboard
Link copied to clipboard

Цвета компонента CheckBox

Link copied to clipboard
Link copied to clipboard
data class CheckBoxDimensions(val controlSize: Dp = 24.dp, val controlRadius: Dp = 6.dp, val verticalSpacing: Dp = 2.dp, val horizontalSpacing: Dp = 10.dp, val strokeWidth: Dp = 2.dp, val checkedStrokeWidth: Dp = 1.dp, val innerCheckBoxPadding: Dp = 2.dp)

Размеры и отступы CheckBox

Link copied to clipboard

Размеры и отступы CheckBox

Link copied to clipboard

Размеры и отступы CheckBox

Link copied to clipboard

Размеры и отступы компонента CheckBoxGroup

Link copied to clipboard
Link copied to clipboard

Скоуп дочерних элементов CheckBoxGroup

Link copied to clipboard
Link copied to clipboard

Стиль компонента CheckBoxGroup

Link copied to clipboard

Состояния CheckBox

Link copied to clipboard

Стиль компонента CheckBox

Link copied to clipboard
Link copied to clipboard

Значение состояния CheckBox.

Link copied to clipboard
interface ChipColors

Цвета компонента Chip

Link copied to clipboard

Builder для ChipColors.

Link copied to clipboard

Размеры и отступы компонента Chip

Link copied to clipboard

Билдер размеров для Chip

Link copied to clipboard
data class ChipGroupDimensions(val horizontalSpacing: Dp = 2.dp, val verticalSpacing: Dp = 2.dp)

Размеры и отступы компонента ChipGroup

Link copied to clipboard

Билдер размеров для ChipGroup

Link copied to clipboard

Размеры и отступы компонента ChipGroup

Link copied to clipboard

Режим переполнения контейнера с чипами

Link copied to clipboard

Стиль компонента ChipGroup

Link copied to clipboard
Link copied to clipboard
interface ChipStyle : Style

Стиль компонента Chip

Link copied to clipboard

Builder стиля Chip.

Link copied to clipboard

Цвета компонента CircularProgressBar

Link copied to clipboard

Цвета компонента CircularProgressBar

Link copied to clipboard

Стиль компонента CircularProgressBar

Link copied to clipboard

Выравнивание иконки закрытия относительно панели Drawer

Link copied to clipboard

Расположение иконки закрытия панели Drawer

Link copied to clipboard

Выравнивание текста надписи

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для CodeFieldColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для CodeFieldDimensions

Link copied to clipboard

Стиль компонента CodeField

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Выравнивание текста надписи

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для CodeInputColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для CodeInputDimensions

Link copied to clipboard
Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента CollapsingNavigationBar

Link copied to clipboard

Содержит дефолтные настройки CollapsingNavigationBar

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
class CollapsingNavigationBarState(initialHeightOffsetLimit: Float, initialHeightOffset: Float, initialContentOffset: Float)

Объект состояния, который может быть поднят для управления и наблюдения за состоянием навигационной панели. Состояние считывается и обновляется реализацией NavigationBarScrollBehavior.

Link copied to clipboard

Стиль компонента CollapsingNavigationBar

Link copied to clipboard
interface ComboBoxScope

Маркерный интерфейс для области видимости компонента ComboBox. Используется для ограничения области видимости триггера.

Link copied to clipboard

Стиль компонента ComboBox.

Link copied to clipboard

Билдер для создания ComboBoxStyle с конфигурацией отдельных компонентов.

Link copied to clipboard

Расположение contentBefore в Note и NoteCompact

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Builder для CounterColors.

Link copied to clipboard

Размеры и отступы, которые используются внутри Counter.

Link copied to clipboard
Link copied to clipboard

Стиль Counter

Link copied to clipboard

Builder стиля Counter

Link copied to clipboard

Способ размещения данных на колесе

Link copied to clipboard

Цвета компонента Divider

Link copied to clipboard

Builder цвета для Divider

Link copied to clipboard

Размеры компонента Divider

Link copied to clipboard

Билдер размеров для Divider

Link copied to clipboard

Ориентация раздлелителя

Link copied to clipboard

Стиль компонента Divider

Link copied to clipboard
Link copied to clipboard

Сторона, с которой открывается панель.

Link copied to clipboard

Цвета выезжающей панели.

Link copied to clipboard

Билдер для DrawerColors.

Link copied to clipboard

Размеры и отступы выезжающей панели.

Link copied to clipboard

Билдер для DrawerDimensions.

Link copied to clipboard

Состояние выезжающей панели (Drawer). Описывает текущее положение панели, целевое состояние, а также параметры жестов и прокрутки.

Link copied to clipboard

Стиль выезжающей панели (Drawer), включающий форму, цвета, размеры и другие параметры.

Link copied to clipboard

Билдер для DrawerStyle.

Link copied to clipboard

Текущее или целевое состояние панели.

Link copied to clipboard

Стиль компонента EmptyState

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Cемантические состояния представления загрузки

Link copied to clipboard

Стиль компонента EmptyState

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента DropdownMenu

Link copied to clipboard
Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Стиль компонента DropdownMenu

Link copied to clipboard
Link copied to clipboard
data class DropdownProperties(val height: DropdownProperties.Height = Height.FullHeight, val width: DropdownProperties.Width = Width.TriggerWidth, val popupProperties: PopupProperties = PopupProperties(clippingEnabled = false), val placement: PopoverPlacement = PopoverPlacement.Bottom, val placementMode: PopoverPlacementMode = PopoverPlacementMode.Strict)

Настройки дропдауна

Link copied to clipboard
interface DropdownScope

Скоуп компонента DropdownMenu

Link copied to clipboard

Тип обводки компонента

Link copied to clipboard

Цвета DropZone.

Link copied to clipboard

Билдер для DropZoneColors.

Link copied to clipboard

Размеры и отступы DropZone.

Link copied to clipboard

Билдер для DropZoneDimensions.

Link copied to clipboard

Расположение иконки в DropZone

Link copied to clipboard

Семантические состояния DropZone.

Link copied to clipboard

Стиль выезжающей панели (DropZone), включающий форму, цвета, размеры и другие параметры.

Link copied to clipboard
Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для EditableColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для EditableDimensions

Link copied to clipboard

Режим расположения иконки в компоненте

Link copied to clipboard

Состояния комопнента Editable

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для EmptyStateColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Расположение кнопки действия и встроенного прогресса

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для FileColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для FileDimensions

Link copied to clipboard

Расположение прогресса

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента File

Link copied to clipboard

Выравнивание индикатора формы FormItem

Link copied to clipboard

Цвета компонента FormItem

Link copied to clipboard

Билдер для создания пользовательских FormItemColors

Link copied to clipboard

Размеры и отступы компонента FormItem

Link copied to clipboard

Билдер для создания пользовательских FormItemDimensions

Link copied to clipboard

Стиль компонента FormItem

Link copied to clipboard

Билдер стиля компонента FormItem

Link copied to clipboard

Режим выранивания вспомогательного текста текста формы FormItem (title / titleCaption / caption / counter)

Link copied to clipboard

Расположение Title в форме FormItem

Link copied to clipboard

Тип формы FormItem

Link copied to clipboard

Builder для BadgeColors.

Link copied to clipboard
Link copied to clipboard

Builder стиля Badge с иконкой.

Link copied to clipboard

Builder для ButtonColors.

Link copied to clipboard

Билдер размеров для IconButton

Link copied to clipboard

Builder стиля кнопки c иконкой

Link copied to clipboard
fun interface ImageSource

Источник изображения для компонента Icon.

Link copied to clipboard

Стиль компонента Image

Link copied to clipboard
Link copied to clipboard

Цвета компонента Indicator

Link copied to clipboard

Builder цвета для Indicator

Link copied to clipboard

Размеры компонента Indicator

Link copied to clipboard

Билдер размеров для Indicator

Link copied to clipboard

Режим размещения indicator относительно границ composable

Link copied to clipboard

Стиль компонента Indicator

Link copied to clipboard
Link copied to clipboard

Расположение блока Label относительно полосы прогресса

Link copied to clipboard

Расположение лэйблов ограничений

Link copied to clipboard

Builder для ButtonColors.

Link copied to clipboard

Билдер размеров для LinkButton

Link copied to clipboard

Builder стиля кнопки.

Link copied to clipboard
interface ListColors

Цвета компонента ListItem

Link copied to clipboard

Билдер для ListItemColors

Link copied to clipboard

Размеры и отступы компонента List

Link copied to clipboard

Билдер для ListItemDimensions

Link copied to clipboard

Цвета компонента ListItem

Link copied to clipboard

Билдер для ListItemColors

Link copied to clipboard

Размеры и отступы компонента ListItem

Link copied to clipboard

Билдер для ListItemDimensions

Link copied to clipboard

Стиль компонента ListItem

Link copied to clipboard

Билдер стиля ListItemStyle

Link copied to clipboard

Стиль компонента List

Link copied to clipboard

Билдер стиля ListStyle

Link copied to clipboard

Стиль компонента Loader

Link copied to clipboard

Билдер стиля LoaderStyle

Link copied to clipboard

Тип отображаемого прогресса.

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для LoadingStateColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard
data class ModalAnimations(val contentEnterTransition: EnterTransition = fadeIn(), val contentExitTransition: ExitTransition = ExitTransition.None, val overlayEnterSpec: FiniteAnimationSpec<Float> = tween(), val overlayExitSpec: FiniteAnimationSpec<Float> = tween(0))

Настройки анимации модального окна Modal

Link copied to clipboard

Цвета ModalBottomSheet

Link copied to clipboard

Внутренние отступы контента

Link copied to clipboard

Стиль ModalBottomSheet

Link copied to clipboard

Цвета компонента Modal

Link copied to clipboard

Builder для ModalColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Builder для ModalDimensions

Link copied to clipboard

Расположение контента в модальном окне

Link copied to clipboard

Стиль компонента Modal

Link copied to clipboard

Билдер стиля ModalStyle

Link copied to clipboard

Режим центрирования текстового блока

Link copied to clipboard

Цвета компонента NavigationBar

Link copied to clipboard
Link copied to clipboard

Расположение контента

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Поведение CollapsingNavigationBar при скролле

Link copied to clipboard

Стиль компонента NavigationBar

Link copied to clipboard
Link copied to clipboard

Выравнивание Inline-текста (при NavigationBarTextPlacement.Inline)

Link copied to clipboard

Расположение текста

Link copied to clipboard
Link copied to clipboard

Builder цветов NavigationDrawer.

Link copied to clipboard
Link copied to clipboard

Builder размеров NavigationDrawer.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Состояние NavigationDrawer.

Link copied to clipboard
Link copied to clipboard

Текущее или целевое состояние NavigationDrawer.

Link copied to clipboard

Цвета компонента Note

Link copied to clipboard

Билдер для NoteColors

Link copied to clipboard

Цвета компонента NoteCompact

Link copied to clipboard

Билдер для NoteCompactColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Стиль компонента Note

Link copied to clipboard
Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Builder для NoteDimensions

Link copied to clipboard

Стиль компонента Note

Link copied to clipboard

Билдер стиля NoteStyle

Link copied to clipboard

Расположение иконки закрытия в Notification

Link copied to clipboard

Цвета компонента Notification

Link copied to clipboard
Link copied to clipboard

Режим размещения кнопок

Link copied to clipboard

Цвета компонента NotificationContent

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Расположение иконки

Link copied to clipboard

Стиль компонента NotificationContent

Link copied to clipboard

Билдер стиля компонента NotificationContent

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Стиль компонента Notification

Link copied to clipboard
Link copied to clipboard

Builder цвета для Overlay

Link copied to clipboard

Цвета компонента Overlay

Link copied to clipboard

Стиль компонента Overlay

Link copied to clipboard

Builder стиля Overlay.

Link copied to clipboard

Цвета компонента

Link copied to clipboard
Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Ориентация компонента PaginationDots

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Режим выравнивания компонента и указателя относительно триггера

Link copied to clipboard

Цвета компонента Popover

Link copied to clipboard

Builder для PopoverColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Ориентация компонента относительно триггера

Link copied to clipboard

Режим расположения компонента

Link copied to clipboard

Стратегия расчета позиции Popover.

Link copied to clipboard

Стиль компонента Popover

Link copied to clipboard

Билдер стиля PopoverStyle

Link copied to clipboard

Цвета компонента ProgressBar

Link copied to clipboard
Link copied to clipboard

Цвета компонента ProgressBar

Link copied to clipboard
Link copied to clipboard
data class ProgressBarDimensions(val backgroundHeight: Dp = 4.dp, val backgroundCornerRadius: Dp = backgroundHeight / 2, val indicatorHeight: Dp = 6.dp, val indicatorCornerRadius: Dp = indicatorHeight / 2)

Размеры и отступы компонента ProgressBar

Link copied to clipboard

Цвета компонента ProgressBar

Link copied to clipboard

Стиль компонента ProgressBar

Link copied to clipboard

Цвета компонента RadioBox

Link copied to clipboard
Link copied to clipboard

Цвета компонента RadioBox

Link copied to clipboard
Link copied to clipboard
data class RadioBoxDimensions(val controlSize: Dp = 24.dp, val innerDiameter: Dp = 10.dp, val verticalSpacing: Dp = 2.dp, val horizontalSpacing: Dp = 10.dp, val strokeWidth: Dp = 2.dp, val checkedStrokeWidth: Dp = 1.dp, val checkedPadding: Dp = 1.dp)

Размеры и отступы RadioBox

Link copied to clipboard

Размеры и отступы RadioBox

Link copied to clipboard

Размеры и отступы RadioBox

Link copied to clipboard

Размеры и отступы компонента RadioBoxGroup

Link copied to clipboard
Link copied to clipboard

Скоуп элемента stateful группы RadioBoxGroup

Link copied to clipboard

Скоуп stateful группы RadioBoxGroup

Link copied to clipboard

Стиль компонента RadioBoxGroup

Link copied to clipboard

Состояния RadioBox

Link copied to clipboard

Стиль компонента RadioBox

Link copied to clipboard
Link copied to clipboard

Стиль компонента RectSkeleton

Link copied to clipboard
Link copied to clipboard
data class ScrollBar(val indicatorThickness: Dp = 2.dp, val indicatorColor: InteractiveColor = Color.DarkGray.asInteractive(), val backgroundColor: InteractiveColor = Color.LightGray.asInteractive(), val alpha: Float? = null, val alphaAnimationSpec: AnimationSpec<Float>? = null, val padding: PaddingValues = PaddingValues(all = 0.dp))

Настройки скроллбара

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для ScrollBarColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для ScrollBarDimensions

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента Segment

Link copied to clipboard

Билдер для SegmentColors

Link copied to clipboard

Размеры и отступы компонента Segment

Link copied to clipboard

Билдер для SegmentDimensions

Link copied to clipboard

Цвета компонента SegmentItem

Link copied to clipboard

Билдер для SegmentItemColors

Link copied to clipboard

Размеры и отступы компонента SegmentItem

Link copied to clipboard
Link copied to clipboard

Стиль компонента SegmentItem

Link copied to clipboard
Link copied to clipboard
interface SegmentScope

Скоуп контента Segment

Link copied to clipboard

Стиль компонента Segment

Link copied to clipboard

Билдер стиля SegmentStyle

Link copied to clipboard

Интерфейс менеджера состояния данных для компонента Select. Управляет выбором элементов в списке.

Link copied to clipboard

Цветовая схема компонента SelectItem. Определяет цвета для различных состояний и элементов.

Link copied to clipboard

Билдер для настройки цветовой схемы SelectItem.

Link copied to clipboard

Размеры и отступы компонента SelectItem. Определяет геометрические параметры элемента.

Link copied to clipboard

Билдер для настройки размеров и отступов SelectItem.

Link copied to clipboard

Стиль компонента SelectItem. Определяет визуальное представление элемента выбора в списке. Собственные реализации интерфейсов стиля и билдеров должны поддерживать StatefulValue-свойства.

Link copied to clipboard

Билдер для создания стиля SelectItem.

Link copied to clipboard

Тип элемента выбора SelectItem

Link copied to clipboard
interface SelectScope

Маркерный интерфейс для области видимости компонента Select. Используется для ограничения области видимости триггера.

Link copied to clipboard
class SelectState(initialState: Boolean = false)

Класс состояния для управления открытием/закрытием компонента Select.

Link copied to clipboard

Стиль компонента Select (выпадающий список).

Link copied to clipboard

Билдер для создания SelectStyle с конфигурацией отдельных компонентов.

Link copied to clipboard

Предоставлет ширину строки в TextSkeleton

Link copied to clipboard

Направление slide

Link copied to clipboard

Выравнивание всего контента (работает как Gravity)

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для SliderColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для SliderDimensions

Link copied to clipboard

Расположение полосы прогресса

Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента Spinner

Link copied to clipboard

Билдер для SpinnerColors

Link copied to clipboard

Размеры и отступы компонента Spinner

Link copied to clipboard

Билдер для SpinnerDimensions

Link copied to clipboard

Вид концов спиннера

Link copied to clipboard

Стиль компонента Spinner

Link copied to clipboard

Билдер стиля SpinnerStyle

Link copied to clipboard

Цвета компонента Splitter.

Link copied to clipboard

Builder цвета для Splitter

Link copied to clipboard

Размеры компонента Splitter.

Link copied to clipboard

Билдер размеров для Splitter

Link copied to clipboard
Link copied to clipboard

Стиль компонента Splitter.

Link copied to clipboard
Link copied to clipboard
interface StaticListScope

Контент-контракт компонента StaticList.

Link copied to clipboard

Цветовая схема компонента Switch

Link copied to clipboard

Builder для SwitchColors.

Link copied to clipboard

Цветовая схема компонента Switch

Link copied to clipboard

Builder цветов SwitchColorValues

Link copied to clipboard
data class SwitchDimensions(val toggleWidth: Dp = 44.dp, val toggleHeight: Dp = 28.dp, val thumbDiameter: Dp = 24.dp, val trackCornerRadius: Dp = 14.dp, val togglePadding: Dp = 2.dp, val verticalSpacing: Dp = 2.dp, val horizontalSpacing: Dp = 12.dp)

Размеры и отступы Switch

Link copied to clipboard

Размеры и отступы Switch

Link copied to clipboard

Билдер размеров и отступов SwitchDimensionValues

Link copied to clipboard

Состояния Switch

Link copied to clipboard

Стиль компонента Switch

Link copied to clipboard

Builder стиля SwitchStyle

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для TabBarColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Билдер для TabBarDimensions

Link copied to clipboard

Цвета компонента

Link copied to clipboard

Билдер для TabBarItemColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Стиль компонента

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Размещение label в TabBar

Link copied to clipboard
interface TabBarScope

Cкоуп TabBar

Link copied to clipboard

Стиль компонента TabBar

Link copied to clipboard

Билдер стиля компонента

Link copied to clipboard

Цвета компонента TabItem

Link copied to clipboard

Билдер для TabItemColors

Link copied to clipboard

Размеры и отступы компонента TabItem

Link copied to clipboard

Билдер для TabItemDimensions

Link copied to clipboard

Стиль компонента TabItem

Link copied to clipboard

Билдер стиля TabItemStyle

Link copied to clipboard

Режим ограничения размера контейнера с табами

Link copied to clipboard

Цвета компонента Tabs

Link copied to clipboard

Билдер для TabsColors

Link copied to clipboard
interface TabScope

Cкоуп Tabs

Link copied to clipboard

Размеры и отступы компонента Tabs

Link copied to clipboard

Билдер для TabsDimensions

Link copied to clipboard

Ориентация табов

Link copied to clipboard

Стиль компонента Tabs

Link copied to clipboard

Билдер стиля TabsStyle

Link copied to clipboard

Режим отображения дополнительного текста. EachItem использует WheelItemData.textAfter, Static использует WheelDataSet.staticTextAfter.

Link copied to clipboard
data class TextBehaviour(val overflow: TextOverflow = TextOverflow.Clip, val softWrap: Boolean = true, val maxLines: Int = Int.MAX_VALUE)

Поведение компонента Text

Link copied to clipboard
data class TextFieldAnimation(val animationDuration: Int = 150, val placeholderAnimationDelayOrDuration: Int = 67, val placeholderAnimationDuration: Int = 83)

Параметры анимации текстового поля

Link copied to clipboard

Цвета компонента TextField

Link copied to clipboard

Билдер цветов TextFieldColors

Link copied to clipboard
data class TextFieldDimensions(val boxPaddingStart: Dp = 16.dp, val boxPaddingEnd: Dp = 16.dp, val boxPaddingTop: Dp = 25.dp, val boxPaddingBottom: Dp = 9.dp, val labelPadding: Dp = 2.dp, val optionalPadding: Dp = 4.dp, val helperTextPadding: Dp = 4.dp, val startContentPadding: Dp = 6.dp, val endContentPadding: Dp = 6.dp, val chipsPadding: Dp = 6.dp, val chipsPaddingStart: Dp = chipsPadding, val chipsPaddingEnd: Dp = chipsPadding, val chipsPaddingTop: Dp = chipsPadding, val chipsPaddingBottom: Dp = chipsPadding, val boxMinHeight: Dp = 56.dp, val alignmentLineHeight: Dp = 56.dp, val startContentSize: Dp = 24.dp, val endContentSize: Dp = 24.dp, val indicatorDimensions: TextFieldDimensions.IndicatorDimensions = IndicatorDimensions(), val dividerThickness: Dp = 1.dp)

Отступы текстового поля

Link copied to clipboard

Билдер размеров для TextField

Link copied to clipboard

Размеры и отступы компонента TextField

Link copied to clipboard

Типы отображения вспомогательного текста

Link copied to clipboard

Режим размещения индикатора

Link copied to clipboard

Билдер настроек индикатора

Link copied to clipboard

Размеры и отступы Indicator внутри компонента TextField

Link copied to clipboard

Типы отображения лейбла

Link copied to clipboard

Билдер scrollBar

Link copied to clipboard

Семантические состояния компонента TextField

Link copied to clipboard

Стиль компонента TextField

Link copied to clipboard
Link copied to clipboard

Тип текстового поля (обязательное или опциональное)

Link copied to clipboard

Стиль компонента TextSkeleton

Link copied to clipboard
Link copied to clipboard
fun interface TextSource

Источник текста для компонента Text.

Link copied to clipboard

Расположение заголовка в блоке Label

Link copied to clipboard

Цвета компонента Toast

Link copied to clipboard

Builder для ToastColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Builder для ToastDimensions

Link copied to clipboard

Стиль компонента Toast

Link copied to clipboard

Билдер стиля ToastStyle

Link copied to clipboard

Цвета компонента ToolBar

Link copied to clipboard

Builder для ToolBarColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Расположение ToolBar

Link copied to clipboard
interface ToolBarScope

Cкоуп ToolBar

Link copied to clipboard

Стиль компонента ToolBar

Link copied to clipboard

Билдер стиля ToolBarStyle

Link copied to clipboard

Цвета компонента Tooltip

Link copied to clipboard

Builder для TooltipColors

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard
Link copied to clipboard

Стиль компонента Tooltip

Link copied to clipboard

Билдер стиля TooltipStyle

Link copied to clipboard
data class TriggerInfo(val positionInRoot: IntOffset = IntOffset.Zero, val size: IntSize = IntSize.Zero, val focusScaleFactor: Float = 0.0f, val topAlignmentLine: Int = AlignmentLine.Unspecified, val bottomAlignmentLine: Int = AlignmentLine.Unspecified, val startAlignmentLine: Int = AlignmentLine.Unspecified, val endAlignmentLine: Int = AlignmentLine.Unspecified, val cutoutShape: Shape = RectangleShape, val cutoutPaddings: PaddingValues = PaddingValues(0.dp), val positionInScreen: IntOffset = IntOffset.Zero, val visibleBoundsInScreen: Rect? = null)

Информация о размерах и расположении триггера

Link copied to clipboard

Преобразователь формата отображаемого прогресса

Link copied to clipboard

Режим отображения выбранного значения

Link copied to clipboard

Расположение текста установленного значения

Link copied to clipboard

Режим выравнивания составных частей компонента

Link copied to clipboard

Цвета компонента Wheel

Link copied to clipboard

Builder для WheelColors

Link copied to clipboard

Ограничения колёс по ширине

Link copied to clipboard
data class WheelDataSet(val dataSet: List<WheelItemData>, val description: String? = null, val initialIndex: Int = 0, val staticTextAfter: String? = null, val looping: Boolean = false)

Набор данных, необходимый для отображения колеса

Link copied to clipboard

Размеры и отступы компонента

Link copied to clipboard

Builder для WheelDimensions

Link copied to clipboard
data class WheelItemData(val text: String = "", val textAfter: String = "")

Данные элемента колеса

Link copied to clipboard

Тип разделителя

Link copied to clipboard

Стиль компонента Wheel

Link copied to clipboard

Билдер стиля WheelStyle

Link copied to clipboard

Класс размерности окна. См. developer.android.com

Link copied to clipboard
data class WindowSizeInfo(val widthClass: WindowSizeClass = WindowSizeClass.Medium, val heightClass: WindowSizeClass = WindowSizeClass.Medium)

Информация о размерности окна

Properties

Link copied to clipboard
val Int.dp: Dp

Px -> Dp

Link copied to clipboard

Dp -> Px

Link copied to clipboard
Link copied to clipboard

CompositionLocal c AccordionStyle для компонента Accordion

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

CompositionLocal c AvatarStyle для компонента Avatar

Link copied to clipboard

CompositionLocal c BadgeStyle для компонента BadgeSolid

Link copied to clipboard
Link copied to clipboard

CompositionLocal c ButtonStyle для компонента Button

Link copied to clipboard

CompositionLocal с CardStyle для компонента Card

Link copied to clipboard

CompositionLocal c CarouselStyle для компонента Carousel

Link copied to clipboard

CompositionLocal c CellStyle для компонента Cell

Link copied to clipboard
Link copied to clipboard

CompositionLocal c CheckBoxStyle для компонента CheckBox

Link copied to clipboard

CompositionLocal c ChipGroupStyle для компонента ChipGroup

Link copied to clipboard

CompositionLocal c ChipStyle для компонента Chip

Link copied to clipboard

CompositionLocal c CodeFieldStyle для компонента CodeField

Link copied to clipboard

CompositionLocal c CodeInputStyle для компонента CodeInput

Link copied to clipboard

CompositionLocal c ComboBoxStyle для компонента ComboBox.

Link copied to clipboard

CompositionLocal c CounterStyle для компонента Counter

Link copied to clipboard

CompositionLocal c DividerStyle для компонента Divider

Link copied to clipboard

CompositionLocal, предоставляющий текущий DrawerStyle для потомков.

Link copied to clipboard
Link copied to clipboard

CompositionLocal, предоставляющий текущий DropZoneStyle для потомков.

Link copied to clipboard

CompositionLocal c EditableStyle для компонента Editable

Link copied to clipboard

CompositionLocal c FileStyle для компонента File

Link copied to clipboard

CompositionLocal c FormItemStyle для компонента FormItem

Link copied to clipboard

CompositionLocal c BadgeStyle для компонента IconBadgeSolid

Link copied to clipboard

CompositionLocal с ButtonStyle для компонента IconButton

Link copied to clipboard

CompositionLocal, содержащий предпочтительный размер DpSize, который будет использоваться компонентами Icon по умолчанию.

Link copied to clipboard

CompositionLocal c ImageStyle для компонента Image

Link copied to clipboard

CompositionLocal c IndicatorStyle для компонента Indicator

Link copied to clipboard

CompositionLocal с ButtonStyle для компонента IconButton

Link copied to clipboard

CompositionLocal c ListItemStyle для компонента ListItem

Link copied to clipboard

CompositionLocal c ListStyle для компонента List

Link copied to clipboard

CompositionLocal c LoaderStyle для компонента Loader

Link copied to clipboard

CompositionLocal c ModalStyle для компонента Modal

Link copied to clipboard
Link copied to clipboard

CompositionLocal, предоставляющий текущий NavigationDrawerItemStyle.

Link copied to clipboard

CompositionLocal, предоставляющий текущий NavigationDrawerStyle.

Link copied to clipboard
Link copied to clipboard

CompositionLocal c NoteStyle для компонента Note

Link copied to clipboard
Link copied to clipboard

CompositionLocal c OverlayStyle для компонента Overlay

Link copied to clipboard
Link copied to clipboard

CompositionLocal c PopoverStyle для компонента Popover

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

CompositionLocal c RadioBoxStyle для компонента RadioBox

Link copied to clipboard
Link copied to clipboard

CompositionLocal c ScrollBarStyle для компонента ScrollBar

Link copied to clipboard

CompositionLocal c SegmentItemStyle для компонента SegmentItem

Link copied to clipboard

CompositionLocal c SegmentStyle для компонента Segment

Link copied to clipboard
Link copied to clipboard

CompositionLocal c SelectItemStyle для компонента SelectItem

Link copied to clipboard

CompositionLocal c SliderStyle для компонента Slider

Link copied to clipboard

CompositionLocal c SpinnerStyle для компонента Spinner

Link copied to clipboard

CompositionLocal c SplitterStyle для компонента Splitter.

Link copied to clipboard

CompositionLocal для стиля компонента Switch

Link copied to clipboard
Link copied to clipboard

CompositionLocal c TabBarStyle для компонента TabBar

Link copied to clipboard

CompositionLocal c TabItemStyle для компонента TabItem

Link copied to clipboard

CompositionLocal c TabsStyle для компонента Tabs

Link copied to clipboard
Link copied to clipboard

CompositionLocal, содержащий BrushProducer для Text

Link copied to clipboard

CompositionLocal, содержащий ColorProducer для Text

Link copied to clipboard

CompositionLocal c TextFieldStyle для компонента TextField

Link copied to clipboard
Link copied to clipboard

CompositionLocal, содержащий предпочтительный TextStyle, который будет использоваться компонентами Text по умолчанию. Чтобы установить значение для этого CompositionLocal, см. ProvideTextStyle, который объединит все отсутствующие свойства TextStyle с существующим TextStyle, установленным в этом CompositionLocal.

Link copied to clipboard

Локальный CompositionLocal, задающий интервал троттлинга в миллисекундах. По умолчанию - 300 мс.

Link copied to clipboard

CompositionLocal, содержащий предпочтительный Color, который будет использоваться компонентами Icon по умолчанию.

Link copied to clipboard

CompositionLocal, содержащий заливку BrushProducer, который будет использоваться компонентами Icon по умолчанию.

Link copied to clipboard

CompositionLocal c ToastStyle для компонента Toast

Link copied to clipboard

CompositionLocal c ToolBarStyle для компонента ToolBar

Link copied to clipboard

CompositionLocal c TooltipStyle для компонента Tooltip

Link copied to clipboard

CompositionLocal c WheelStyle для компонента Wheel

Link copied to clipboard
val Dp.px: Int

Dp -> Px Округляет до ближайшего целого

Functions

Link copied to clipboard
fun Accordion(modifier: Modifier = Modifier, style: AccordionStyle = LocalAccordionStyle.current, content: @Composable ColumnScope.() -> Unit)

Accordion. Вертикальный список с возможностью показать или скрыть связанный компонент. Ожидает в качестве контента AccordionItem или Divivder.

Link copied to clipboard
fun AccordionItem(modifier: Modifier = Modifier, style: AccordionItemStyle = LocalAccordionItemStyle.current, opened: Boolean = false, title: String, onClick: () -> Unit = {}, openTransition: EnterTransition = remember { fadeIn() + expandVertically() }, closeTransition: ExitTransition = remember { fadeOut() + shrinkVertically() }, iconAnimationSpec: AnimationSpec<Float>? = remember { spring() }, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun AccordionItem(modifier: Modifier = Modifier, style: AccordionItemStyle = LocalAccordionItemStyle.current, opened: Boolean = false, title: String, onClick: () -> Unit = {}, action: @Composable () -> Unit, openTransition: EnterTransition = fadeIn() + expandVertically(), closeTransition: ExitTransition = fadeOut() + shrinkVertically(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

AccordionItem. Служит составным элементом для списка Accordion.

Link copied to clipboard

Корректирует CornerBasedShape на значение all.

Корректирует CornerBasedShape на значение allPx.

fun CornerBasedShape.adjustBy(topStart: Dp = 0.dp, topEnd: Dp = 0.dp, bottomEnd: Dp = 0.dp, bottomStart: Dp = 0.dp): CornerBasedShape

Корректирует CornerBasedShape на указанные значения. Корректировки указываются в Dp.

fun CornerBasedShape.adjustBy(topStartPx: Float = 0.0f, topEndPx: Float = 0.0f, bottomEndPx: Float = 0.0f, bottomStartPx: Float = 0.0f): CornerBasedShape

Корректирует CornerBasedShape на указанные значения. Корректировки указываются в Px.

Link copied to clipboard

Создает TextSource на основе AnnotatedString.

Link copied to clipboard
fun Autocomplete(modifier: Modifier = Modifier, style: AutocompleteStyle = LocalAutocompleteStyle.current, field: @Composable () -> Unit, showDropdown: Boolean = false, onDismissRequest: () -> Unit = {}, showEmptyState: Boolean = false, dropdownProperties: DropdownProperties = DropdownProperties(), emptyState: @Composable DropdownScope.() -> Unit? = null, footer: @Composable () -> Unit? = null, listContent: LazyListScope.() -> Unit = {})

Поле ввода с возможностью подстановки значения из предварительно заполненного выпадающего списка по мере ввода данных

fun Autocomplete(dropdownMotion: Motion<DropdownMenuMotionStyle>, field: @Composable () -> Unit, modifier: Modifier = Modifier, style: AutocompleteStyle = LocalAutocompleteStyle.current, showDropdown: Boolean = false, onDismissRequest: () -> Unit = {}, showEmptyState: Boolean = false, dropdownProperties: DropdownProperties = DropdownProperties(), emptyState: @Composable DropdownScope.() -> Unit? = null, footer: @Composable () -> Unit? = null, listContent: LazyListScope.() -> Unit = {})

Autocomplete с заданным Motion выпадающего меню.

Link copied to clipboard
fun Avatar(modifier: Modifier = Modifier, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = LocalAvatarGroupActionEnabled.current, placeholder: AvatarPlaceholder? = null, extra: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, content: @Composable BoxScope.() -> Unit)
fun Avatar(motion: Motion<AvatarMotionStyle>, content: @Composable BoxScope.() -> Unit, modifier: Modifier = Modifier, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = LocalAvatarGroupActionEnabled.current, placeholder: AvatarPlaceholder? = null, extra: @Composable BoxScope.() -> Unit? = null)
fun Avatar(modifier: Modifier = Modifier, painter: Painter? = null, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = LocalAvatarGroupActionEnabled.current, placeholder: AvatarPlaceholder? = null, contentDescription: String? = null, contentScale: ContentScale = ContentScale.None, motion: Motion<AvatarMotionStyle> = rememberAvatarMotion( motionContext = rememberMotionContext( semanticStateSource = rememberAvatarSemanticStateSource(status), ), ))
fun Avatar(imageVector: ImageVector, modifier: Modifier = Modifier, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = LocalAvatarGroupActionEnabled.current, placeholder: AvatarPlaceholder? = null, contentDescription: String? = null, contentScale: ContentScale = ContentScale.None, motion: Motion<AvatarMotionStyle> = rememberAvatarMotion( motionContext = rememberMotionContext( semanticStateSource = rememberAvatarSemanticStateSource(status), ), ))
fun Avatar(imageBitmap: ImageBitmap, modifier: Modifier = Modifier, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = LocalAvatarGroupActionEnabled.current, placeholder: AvatarPlaceholder? = null, contentDescription: String? = null, contentScale: ContentScale = ContentScale.None, filterQuality: FilterQuality = FilterQuality.Low, motion: Motion<AvatarMotionStyle> = rememberAvatarMotion( motionContext = rememberMotionContext( semanticStateSource = rememberAvatarSemanticStateSource(status), ), ))

Компонент Avatar предназначен для отрисовки пользовательских аватаров. Умеет отображать статус, текст-заглушку, а также иконку действия.

Link copied to clipboard
fun Modifier.avatar(style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = false, placeholder: AvatarPlaceholder? = null): Modifier
fun Modifier.avatar(interactionSource: InteractionSource, style: AvatarStyle = LocalAvatarStyle.current, status: AvatarStatus = AvatarStatus.None, action: Painter? = null, actionEnabled: Boolean = false, placeholder: AvatarPlaceholder? = null, statusCutoutEnabled: Boolean = style.statusCutoutEnabled, statusCutoutPadding: Dp = 3.dp, motion: Motion<AvatarMotionStyle> = rememberAvatarMotion( motionContext = rememberMotionContext( semanticStateSource = rememberAvatarSemanticStateSource(status), interactionSource = interactionSource as? MutableInteractionSource ?: remember { MutableInteractionSource() }, ), )): Modifier

Модификатор, который декорирует компонент как аватар. Его можно использовать в ситуациях, когда Avatar использовать не удается. Например, когда используются собственная или библиотечная реализация: GlideImage() библиотеки Glide Compose или AsyncImage библиотеки coil.

Link copied to clipboard
fun AvatarGroupItemScope.AvatarCounter(displayCount: Int, modifier: Modifier = Modifier)
Link copied to clipboard
fun AvatarGroup(modifier: Modifier = Modifier, style: AvatarGroupStyle = LocalAvatarGroupStyle.current, threshold: Int = AvatarDefaults.DefaultThreshold, content: AvatarGroupScope.() -> Unit)

Контейнер для группы аватаров

Link copied to clipboard
fun Badge(modifier: Modifier = Modifier, style: BadgeStyle = LocalBadgeStyle.current, label: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<BadgeMotionStyle> = rememberBadgeMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Badge с кастомным контентом в центре и иконкой

fun Badge(modifier: Modifier = Modifier, style: BadgeStyle = LocalBadgeStyle.current, label: String = "", startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<BadgeMotionStyle> = rememberBadgeMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Badge с текстом и иконкой

Link copied to clipboard

Возвращает экземпляр BadgeStyleBuilder для Transparent

Link copied to clipboard

Возвращает экземпляр BasicButtonStyleBuilder

Link copied to clipboard

Создает ImageSource на основе ImageBitmap.

Link copied to clipboard
fun Modifier.blink(color: Color, shape: Shape = RectangleShape, alphaDelta: Float = 0.08f, durationMillis: Int = 700, transition: InfiniteTransition = rememberInfiniteTransition(label = "shimmer")): Modifier

Позволяет применить анимацию мерцания. Выглядит как бесконечно плавно мерцающая область. Мерцание достигается путём плавного изменения альфы. Альфа имзеняется в положительную сторону, поэтому альфа оригинального цвета в color должна быть < 1.

fun Modifier.blink(colorProducer: ColorProducer, shape: Shape = RectangleShape, alphaDelta: Float = 0.08f, durationMillis: Int = 700, transition: InfiniteTransition = rememberInfiniteTransition(label = "shimmer")): Modifier

Позволяет применить анимацию мерцания. Выглядит как бесконечно плавно мерцающая область. Мерцание достигается путём плавного изменения альфы. Альфа имзеняется в положительную сторону, поэтому альфа оригинального цвета в color должна быть < 1.

Link copied to clipboard
fun Button(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, value: String? = null, style: ButtonStyle = LocalButtonStyle.current, spacing: ButtonSpacing = ButtonSpacing.Packed, icons: ButtonIcons? = null, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null, motion: Motion<ButtonMotionStyle> = rememberButtonMotion( motionContext = rememberMotionContext(interactionSource), ))

Кнопка с текстом и иконкой. Если loading == true, кнопка отобразит круглый индикатор загрузки. Кнопка умеет отобрать иконки в начале и в конце.

Link copied to clipboard
fun ButtonGroup(modifier: Modifier = Modifier, orientation: ButtonGroupOrientation = ButtonGroupOrientation.Horizontal, style: ButtonGroupStyle = LocalButtonGroupStyle.current, content: ButtonGroupScope.() -> Unit)

Группа кнопок

Link copied to clipboard
fun ButtonIcons(endRes: Int?, startContentDescription: String? = null, endContentDescription: String? = null): ButtonIcons

Создает ButtonIcons с указанным drawable-ресурсом вконце endRes.

fun ButtonIcons(startRes: Int?, endRes: Int? = null, startContentDescription: String? = null, endContentDescription: String? = null): ButtonIcons

Создает ButtonIcons с указанными drawable-ресурсами вначале startRes и вконце endRes.

Link copied to clipboard
fun Card(modifier: Modifier = Modifier, style: CardStyle = LocalCardStyle.current, onClick: () -> Unit = {}, enabled: Boolean = true, indication: Indication? = LocalIndication.current, focusSelectorSettings: FocusSelectorSettings, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun Card(modifier: Modifier = Modifier, style: CardStyle = LocalCardStyle.current, onClick: () -> Unit = {}, enabled: Boolean = true, indication: Indication? = LocalIndication.current, focusSelectorMode: FocusSelectorMode = LocalFocusSelectorMode.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun Card(modifier: Modifier = Modifier, style: CardStyle = LocalCardStyle.current, onClick: () -> Unit = {}, enabled: Boolean = true, indication: Indication? = LocalIndication.current, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, contentFocusSelectorSettings: FocusSelectorSettings = FocusSelectorSettings.None, orientation: CardOrientation = CardOrientation.Vertical, contentPaddings: PaddingValues = style.toPaddingValues(), extra: @Composable BoxScope.() -> Unit? = null, label: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

Компонент Карточка Card

fun Card(title: @Composable () -> Unit, modifier: Modifier = Modifier, style: CardStyle = LocalCardStyle.current, onClick: () -> Unit = {}, enabled: Boolean = true, indication: Indication? = LocalIndication.current, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, contentFocusSelectorSettings: FocusSelectorSettings = FocusSelectorSettings.None, orientation: CardOrientation = CardOrientation.Vertical, contentPaddings: PaddingValues = style.toPaddingValues(), subtitle: @Composable () -> Unit? = null, extra: @Composable BoxScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

Компонент Карточка Card со слотами title и subtitle.

Link copied to clipboard
fun CardContent(modifier: Modifier, style: CardStyle = LocalCardStyle.current, focusSelectorSettings: FocusSelectorSettings, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun CardContent(modifier: Modifier, style: CardStyle = LocalCardStyle.current, focusSelectorMode: FocusSelectorMode = FocusSelectorMode.None, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

Контент карточки.

Link copied to clipboard
fun Carousel(state: PagerState, modifier: Modifier = Modifier, style: CarouselStyle = LocalCarouselStyle.current, contentPadding: PaddingValues = PaddingValues(0.dp), gap: Dp = style.dimensions.gap, pageSize: PageSize = PageSize.Fill, snapPosition: SnapPosition = SnapPosition.Start, hasIndicator: Boolean = true, hasControls: Boolean = true, indicatorVisibleCount: Int = 5, beyondViewportPageCount: Int = PagerDefaults.BeyondViewportPageCount, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, flingBehavior: TargetedFlingBehavior = PagerDefaults.flingBehavior(state = state), userScrollEnabled: Boolean = true, reverseLayout: Boolean = false, key: (index: Int) -> Any? = null, pageNestedScrollConnection: NestedScrollConnection = PagerDefaults.pageNestedScrollConnection(state, Orientation.Horizontal), overscrollEffect: OverscrollEffect? = rememberOverscrollEffect(), pageContent: @Composable PagerScope.(page: Int) -> Unit)

Компонент карусели с горизонтальной прокруткой, поддерживающий индикаторы страниц, навигационные кнопки и различные варианты отображения.

Link copied to clipboard
fun Cell(modifier: Modifier = Modifier, style: CellStyle = LocalCellStyle.current, gravity: CellGravity = CellGravity.Center, title: AnnotatedString = AnnotatedString(""), subtitle: AnnotatedString = AnnotatedString(""), label: AnnotatedString = AnnotatedString(""), disclosureContentEnabled: Boolean = false, disclosureIconRes: Int?, disclosureText: AnnotatedString = AnnotatedString(""), startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CellMotionStyle> = rememberCellMotion(motionContext = rememberMotionContext(interactionSource)))
fun Cell(modifier: Modifier = Modifier, style: CellStyle = LocalCellStyle.current, gravity: CellGravity = CellGravity.Center, disclosureEnabled: Boolean = false, disclosureContent: @Composable RowScope.() -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, centerContent: @Composable ColumnScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CellMotionStyle> = rememberCellMotion( motionContext = rememberMotionContext(interactionSource), ))
fun Cell(modifier: Modifier = Modifier, style: CellStyle = LocalCellStyle.current, gravity: CellGravity = CellGravity.Center, labelContent: @Composable () -> Unit? = null, titleContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CellMotionStyle> = rememberCellMotion( motionContext = rememberMotionContext(interactionSource), ))
fun Cell(modifier: Modifier = Modifier, style: CellStyle = LocalCellStyle.current, gravity: CellGravity = CellGravity.Center, title: AnnotatedString = AnnotatedString(""), subtitle: AnnotatedString = AnnotatedString(""), label: AnnotatedString = AnnotatedString(""), disclosureEnabled: Boolean = false, disclosureIcon: Painter? = null, disclosureText: AnnotatedString = AnnotatedString(""), startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun Cell(modifier: Modifier = Modifier, style: CellStyle = LocalCellStyle.current, gravity: CellGravity = CellGravity.Center, title: AnnotatedString = AnnotatedString(""), subtitle: AnnotatedString = AnnotatedString(""), label: AnnotatedString = AnnotatedString(""), disclosureContentEnabled: Boolean = false, disclosureIconSource: ImageSource? = null, disclosureText: AnnotatedString = AnnotatedString(""), startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CellMotionStyle> = rememberCellMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Cell.

Link copied to clipboard
fun CheckBox(state: ToggleableState, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))
fun CheckBox(state: ToggleableState, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, descriptionContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))
fun CheckBox(value: CheckBoxValue, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))
fun CheckBox(value: CheckBoxValue, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, descriptionContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))
fun CheckBox(checked: Boolean, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onCheckedChange: (Boolean) -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Link copied to clipboard
fun CheckBoxGroup(modifier: Modifier = Modifier, style: CheckBoxGroupStyle = LocalCheckBoxGroupStyle.current, content: CheckboxGroupScope.() -> Unit)

Компонент CheckBoxGroup Вертикальный контейнер для checkBox. Позволяет использовать любые сomposable в качестве элементов. Может содержать рутовый элемент (см. CheckboxGroupScope.rootCheckbox) и вложенные элементы (см. CheckboxGroupScope.checkboxes и CheckboxGroupScope.checkbox).

Link copied to clipboard
fun Chip(modifier: Modifier = Modifier, style: ChipStyle = LocalChipStyle.current, onClick: () -> Unit? = null, label: String = "", startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, semanticStateSource: MutableSemanticStateSource = remember { MutableSemanticStateSource() })
fun Chip(label: @Composable () -> Unit, modifier: Modifier = Modifier, style: ChipStyle = LocalChipStyle.current, onClick: () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, indication: Indication? = LocalIndication.current, onClickLabel: String? = null, motion: Motion<ChipMotionStyle> = rememberChipMotion())

Компонент Chip с поддержкой кликабельности

fun Chip(label: @Composable () -> Unit, isSelected: Boolean, onSelectedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, style: ChipStyle = LocalChipStyle.current, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, indication: Indication? = LocalIndication.current, motion: Motion<ChipMotionStyle> = rememberChipMotion())
fun Chip(modifier: Modifier = Modifier, style: ChipStyle = LocalChipStyle.current, isSelected: Boolean = false, onSelectedChange: (Boolean) -> Unit? = null, label: String = "", startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, semanticStateSource: MutableSemanticStateSource = remember { MutableSemanticStateSource() })

Компонент Chip с поддержкой selected состояния

Link copied to clipboard
fun ChipGroup(modifier: Modifier = Modifier, style: ChipGroupStyle = LocalChipGroupStyle.current, content: @Composable FlowRowScope.() -> Unit)
fun ChipGroup(modifier: Modifier = Modifier, style: ChipGroupStyle = LocalChipGroupStyle.current, overflowMode: ChipGroupOverflowMode = ChipGroupOverflowMode.Wrap, content: @Composable FlowRowScope.() -> Unit)

Компонент предназначен для группировки chip в строку с возможностью переноса или скролла

Link copied to clipboard
fun CircularProgressBar(progress: Float, modifier: Modifier = Modifier, style: CircularProgressBarStyle = LocalCircularProgressBarStyle.current, valueContent: @Composable () -> Unit?, trackEnabled: Boolean? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() })
fun CircularProgressBar(progress: Float, motion: Motion<CircularProgressBarMotionStyle>, modifier: Modifier = Modifier, style: CircularProgressBarStyle = LocalCircularProgressBarStyle.current, valueContent: @Composable () -> Unit?, trackEnabled: Boolean = style.trackEnabled)
fun CircularProgressBar(progress: Float, modifier: Modifier = Modifier, style: CircularProgressBarStyle = LocalCircularProgressBarStyle.current, value: String = "", valueSuffix: String = "%", trackEnabled: Boolean? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() })
fun CircularProgressBar(progress: Float, motion: Motion<CircularProgressBarMotionStyle>, modifier: Modifier = Modifier, style: CircularProgressBarStyle = LocalCircularProgressBarStyle.current, value: String = "", valueSuffix: String = "%", trackEnabled: Boolean = style.trackEnabled)

Компонент CircularProgressBar.

Link copied to clipboard
fun CodeField(modifier: Modifier = Modifier, style: CodeFieldStyle = LocalCodeFieldStyle.current, codeLength: Int = 4, hidden: Boolean = false, isItemValid: (String) -> Boolean = { true }, onCodeComplete: (String) -> Boolean = { true }, caption: String? = null, captionAlignment: CodeFieldCaptionAlignment = CodeFieldCaptionAlignment.Center, enabled: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, animationSpec: AnimationSpec<Float>? = rememberShakeAnimationSpec(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CodeFieldMotionStyle> = rememberCodeFieldMotion( motionContext = rememberMotionContext(interactionSource = interactionSource), ))

Компонент CodeField представляет собой горизонтальный ряд текстовых полей. Каждое поле вмещает в себя один символ, введеный с клавиатуры.

Link copied to clipboard
fun CodeInput(modifier: Modifier = Modifier, style: CodeInputStyle = LocalCodeInputStyle.current, codeLength: Int = 4, hidden: Boolean = false, isItemValid: (String) -> Boolean = { true }, onCodeComplete: (String) -> Boolean = { true }, caption: String? = null, captionAlignment: CodeInputCaptionAlignment = CodeInputCaptionAlignment.Center, enabled: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, animationSpec: AnimationSpec<Float>? = rememberShakeAnimationSpec(), hasItemFocusSelector: Boolean = LocalFocusSelectorSettings.current.isEnabled(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CodeInputMotionStyle> = rememberCodeInputMotion( motionContext = rememberMotionContext(interactionSource = interactionSource), ))

Компонент CodeInput представляет собой горизонтальный ряд графических элементов (точек). Каждая точка вмещает в себя один символ, введеный с клавиатуры.

Link copied to clipboard
fun CollapsingNavigationBar(modifier: Modifier = Modifier, style: CollapsingNavigationBarStyle = LocalCollapsingNavigationBarStyle.current, expandedTitle: @Composable () -> Unit?, expandedDescription: @Composable () -> Unit? = null, expandedTextAlign: NavigationBarTextAlign = NavigationBarTextAlign.Start, collapsedTitle: @Composable () -> Unit?, collapsedDescription: @Composable () -> Unit? = null, collapsedTextAlign: NavigationBarTextAlign = NavigationBarTextAlign.Center, actionStart: @Composable RowScope.() -> Unit? = null, actionEnd: @Composable RowScope.() -> Unit? = null, backgroundContent: @Composable BoxScope.() -> Unit? = null, content: @Composable () -> Unit? = null, windowInsets: WindowInsets = CollapsingNavigationBarDefaults.windowInsets, scrollBehavior: NavigationBarScrollBehavior? = null, centerAlignmentStrategy: NavBarCenterAlignmentStrategy = NavBarCenterAlignmentStrategy.Absolute, interactionSource: InteractionSource = remember { MutableInteractionSource() }, onBackPressed: () -> Unit = {})

Верхняя панель интерфейса, служащая для навигации и отображения ключевых действий с возможностью раскрытия в зависимости от состояния скролла на экране.

Link copied to clipboard

Возвращает информацию о размерности окна как state

Link copied to clipboard
fun ComboBox(trigger: @Composable ComboBoxScope.() -> Unit, listContent: LazyListScope.() -> Unit, modifier: Modifier = Modifier, style: ComboBoxStyle = LocalComboBoxStyle.current, state: SelectState = remember { SelectState() }, enabled: Boolean = true, readOnly: Boolean = false, showEmptyState: Boolean = false, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, dropdownProperties: DropdownProperties = ComboBoxDefaultDropdownProperties)

Компонент ComboBox - текстовое поле с выпадающим списком для ввода и выбора значений.

fun ComboBox(dropdownMotion: Motion<DropdownMenuMotionStyle>, trigger: @Composable ComboBoxScope.() -> Unit, listContent: LazyListScope.() -> Unit, modifier: Modifier = Modifier, style: ComboBoxStyle = LocalComboBoxStyle.current, state: SelectState = remember { SelectState() }, enabled: Boolean = true, readOnly: Boolean = false, showEmptyState: Boolean = false, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, dropdownProperties: DropdownProperties = ComboBoxDefaultDropdownProperties)

ComboBox с заданным Motion существующего выпадающего меню. Сохраняет переходы появления/исчезновения и настройки DropdownProperties. Контексты поля и отдельных строк задаются независимо.

Link copied to clipboard
fun ComboBoxScope.ComboBoxTextField(value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: Int?, iconClosed: Int?, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun ComboBoxScope.ComboBoxTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: Int?, iconClosed: Int?, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun ComboBoxScope.ComboBoxTextField(value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun ComboBoxScope.ComboBoxTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Текстовое поле для ввода и выбора значения, предназначенное для использования внутри ComboBoxScope.

fun ComboBoxScope.ComboBoxTextField(motion: Motion<TextFieldMotionStyle>, value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current)

Поле ComboBox с переходами TextField и управлением выделением/composition через TextFieldValue. Сохраняет TextFieldAnimation, ввод и открытие списка.

fun ComboBoxScope.ComboBoxTextField(motion: Motion<TextFieldMotionStyle>, value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current)

Поле ComboBox с переходами TextField и единым источником взаимодействий из motion. Сохраняет TextFieldAnimation, ввод и открытие списка.

Link copied to clipboard
fun Counter(modifier: Modifier = Modifier, style: CounterStyle = LocalCounterStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit? = null)
fun Counter(modifier: Modifier = Modifier, style: CounterStyle = LocalCounterStyle.current, motion: Motion<CounterMotionStyle> = rememberCounterMotion(), content: @Composable () -> Unit)
fun Counter(modifier: Modifier = Modifier, style: CounterStyle = LocalCounterStyle.current, count: AnnotatedString = AnnotatedString(""), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CounterMotionStyle> = rememberCounterMotion( motionContext = rememberMotionContext(interactionSource), ))
fun Counter(modifier: Modifier = Modifier, style: CounterStyle = LocalCounterStyle.current, count: String = "", interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CounterMotionStyle> = rememberCounterMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Counter

Link copied to clipboard
fun Divider(modifier: Modifier = Modifier, style: DividerStyle = LocalDividerStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, orientation: DividerOrientation = LocalDividerOrientation.current, fillAvailableLength: Boolean = true, motion: Motion<DividerMotionStyle> = rememberDividerMotion( motionContext = rememberMotionContext { interactionSource }, ))

Компонент Divider - разделитель

Link copied to clipboard
fun Drawer(drawerContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: DrawerStyle = LocalDrawerStyle.current, drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed), gesturesEnabled: Boolean = true, overlayEnabled: Boolean = true, moveContentEnabled: Boolean = false, openOnFocus: Boolean = true, closeIconPlacement: CloseIconPlacement = style.closeIconPlacement, closeIconAlignment: CloseIconAlignment = style.closeIconAlignment, closeIconAbsolute: Boolean = false, peekOffset: Dp = style.dimensions.peekSize, interactionSource: InteractionSource = remember { MutableInteractionSource() }, closeIcon: @Composable () -> Unit? = null, drawerHeader: @Composable () -> Unit? = null, drawerFooter: @Composable () -> Unit? = null, content: @Composable BoxScope.() -> Unit)

Контейнер выезжающей панели (Drawer), накладываемой поверх/рядом с основным контентом. Управляется через DrawerState и поддерживает жесты перетаскивания и оверлей.

Link copied to clipboard
fun DropdownMenu(opened: Boolean, modifier: Modifier = Modifier, clipHeight: Boolean = false, clipWidth: Boolean = false, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, style: DropdownMenuStyle = LocalDropdownMenuStyle.current, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, alignment: PopoverAlignment = PopoverAlignment.Start, popupProperties: PopupProperties = remember { DefaultPopupProperties }, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, offset: Dp = Dp.Unspecified, scrollState: LazyListState? = null, showEmptyState: Boolean = false, emptyState: @Composable DropdownScope.() -> Unit? = null, footer: @Composable () -> Unit? = null, content: @Composable () -> Unit)
fun DropdownMenu(opened: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, modifier: Modifier = Modifier, style: DropdownMenuStyle = LocalDropdownMenuStyle.current, clipHeight: Boolean = false, clipWidth: Boolean = false, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, alignment: PopoverAlignment = PopoverAlignment.Start, popupProperties: PopupProperties = remember { DefaultPopupProperties }, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, offset: Dp = Dp.Unspecified, scrollState: LazyListState? = null, showEmptyState: Boolean = false, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, content: @Composable () -> Unit)
fun DropdownMenu(opened: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, safeAreaPadding: PaddingValues, modifier: Modifier = Modifier, style: DropdownMenuStyle = LocalDropdownMenuStyle.current, clipHeight: Boolean = false, clipWidth: Boolean = false, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, alignment: PopoverAlignment = PopoverAlignment.Start, positionStrategy: PopoverPositionStrategy = PopoverPositionStrategy.Recalculate, popupProperties: PopupProperties = remember { DefaultPopupProperties }, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), motion: Motion<DropdownMenuMotionStyle> = rememberDropdownMenuMotion(), offset: Dp = Dp.Unspecified, scrollState: LazyListState? = null, showEmptyState: Boolean = false, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, content: @Composable () -> Unit)

Компонент DropdownMenu. Представляет собой раскрывающееся меню — отображает список пунктов поверх контента.

Link copied to clipboard
fun DropZone(modifier: Modifier = Modifier, onClick: () -> Unit? = null, style: DropZoneStyle = LocalDropZoneStyle.current, state: DropZoneState = DropZoneState.Idle, iconPlacement: DropZoneIconPlacement = style.iconPlacement, icon: @Composable () -> Unit? = null, title: @Composable () -> Unit? = null, description: @Composable () -> Unit? = null, motion: Motion<DropZoneMotionStyle> = rememberDropZoneMotion())

Компонент DropZone - интерактивная область, предназначенная для перетаскивания и загрузки файлов.

Link copied to clipboard
fun Editable(value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: EditableStyle = LocalEditableStyle.current, icon: @Composable () -> Unit? = null, singleLine: Boolean = false, readOnly: Boolean = false, enabled: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, textAlign: TextAlign = TextAlign.Start, iconPlacement: EditableIconPlacement = EditableIconPlacement.Absolute, visualTransformation: VisualTransformation = VisualTransformation.None, onTextLayout: (TextLayoutResult) -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<EditableMotionStyle> = rememberEditableMotion( motionContext = rememberMotionContext(interactionSource = interactionSource), ))
fun Editable(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: EditableStyle = LocalEditableStyle.current, icon: @Composable () -> Unit? = null, singleLine: Boolean = false, readOnly: Boolean = false, enabled: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, textAlign: TextAlign = TextAlign.Start, iconPlacement: EditableIconPlacement = EditableIconPlacement.Absolute, visualTransformation: VisualTransformation = VisualTransformation.None, onTextLayout: (TextLayoutResult) -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<EditableMotionStyle> = rememberEditableMotion( motionContext = rememberMotionContext(interactionSource = interactionSource), ))

Редактируемое текстовое поле

Link copied to clipboard
fun DropdownScope.EmptyState(style: DropdownEmptyStateStyle = LocalDropdownEmptyStateStyle.current, iconRes: Int?, description: String, buttonLabel: String? = null, onClick: () -> Unit? = null)
fun DropdownScope.EmptyState(style: DropdownEmptyStateStyle = LocalDropdownEmptyStateStyle.current, image: @Composable () -> Unit? = null, description: @Composable () -> Unit? = null, button: @Composable () -> Unit? = null)
fun DropdownScope.EmptyState(style: DropdownEmptyStateStyle = LocalDropdownEmptyStateStyle.current, iconSource: ImageSource? = null, description: String, buttonLabel: String? = null, onClick: () -> Unit? = null)

Представление пустого состояния DropdownMenu

Link copied to clipboard
fun File(modifier: Modifier = Modifier, style: FileStyle = LocalFileStyle.current, isLoading: Boolean = false, labelContent: @Composable () -> Unit, descriptionContent: @Composable () -> Unit?, image: @Composable () -> Unit? = null, progress: @Composable () -> Unit? = null, action: @Composable () -> Unit? = null, actionPlacement: FileActionPlacement = style.actionPlacement, interactionSource: InteractionSource = remember { MutableInteractionSource() }, motion: Motion<FileMotionStyle> = rememberFileMotion( motionContext = rememberMotionContext( interactionSource = interactionSource as? MutableInteractionSource ?: remember { MutableInteractionSource() }, ), ))
fun File(modifier: Modifier = Modifier, style: FileStyle = LocalFileStyle.current, isLoading: Boolean = false, label: String, description: String? = null, image: @Composable () -> Unit? = null, progress: @Composable () -> Unit? = null, action: @Composable () -> Unit? = null, actionPlacement: FileActionPlacement = style.actionPlacement, interactionSource: InteractionSource = remember { MutableInteractionSource() }, motion: Motion<FileMotionStyle> = rememberFileMotion( motionContext = rememberMotionContext( interactionSource = interactionSource as? MutableInteractionSource ?: remember { MutableInteractionSource() }, ), ))

Компонент для отображения загрузки файла

Link copied to clipboard
fun FooterLoadingState(style: DropdownLoadingStateStyle = LocalDropdownLoadingStateStyle.current, loadingState: DropdownFooterLoadingState = DropdownFooterLoadingState.None, loadingContent: @Composable () -> Unit? = null, reloadContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun FooterLoadingState(style: DropdownLoadingStateStyle = LocalDropdownLoadingStateStyle.current, loadingState: DropdownFooterLoadingState = DropdownFooterLoadingState.None, loadingLabel: String? = null, reloadIconSource: ImageSource? = null, reloadLabel: String? = null, onClick: () -> Unit = {}, onClickLabel: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Представление состояния загрузки в footer DropdownMenu

Link copied to clipboard
fun FormHorizontal(modifier: Modifier = Modifier, formItemStyle: FormItemStyle = LocalFormItemStyle.current, horizontalArrangement: Arrangement.Horizontal = Arrangement.spacedBy(DEFAULT_FORM_SPACING.dp), verticalAlignment: Alignment.Vertical = Alignment.Top, content: @Composable RowScope.() -> Unit)

Компонент предназначенный для группировки нескольких FormItem в горизонтальной ориентации.

Link copied to clipboard
fun FormItem(modifier: Modifier = Modifier, style: FormItemStyle = LocalFormItemStyle.current, hint: @Composable () -> Unit?, title: @Composable () -> Unit? = null, optional: @Composable () -> Unit? = null, titleCaption: @Composable () -> Unit? = null, caption: @Composable () -> Unit? = null, counter: @Composable () -> Unit? = null, enabled: Boolean = true, interactionSource: InteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun FormItem(modifier: Modifier = Modifier, style: FormItemStyle = LocalFormItemStyle.current, title: @Composable () -> Unit? = null, optional: @Composable () -> Unit? = null, titleCaption: @Composable () -> Unit? = null, caption: @Composable () -> Unit? = null, counter: @Composable () -> Unit? = null, hasHint: Boolean = false, onHintPressed: () -> Unit? = null, hintTriggerInfo: MutableState<TriggerInfo> = remember { mutableStateOf(TriggerInfo()) }, enabled: Boolean = true, interactionSource: InteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

Компонент-оболочка с набором вариаций и элементами управления формой.

Link copied to clipboard
fun FormVertical(modifier: Modifier = Modifier, formItemStyle: FormItemStyle = LocalFormItemStyle.current, verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy(DEFAULT_FORM_SPACING.dp), horizontalAlignment: Alignment.Horizontal = Alignment.Start, content: @Composable ColumnScope.() -> Unit)

Компонент предназначенный для группировки нескольких FormItem в вертикальной ориентации.

Link copied to clipboard

Возвращает значение в dp - брейкпоинт по высоте для указанного класса размерности.

Link copied to clipboard
fun Icon(source: ImageSource, contentDescription: String?, modifier: Modifier = Modifier, brush: BrushProducer? = LocalTintBrushProducer.current, contentScale: ContentScale = ContentScale.Fit)

Иконка. Рисует предоставленный source с использованием brush.

fun Icon(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = Modifier, tint: Color = LocalTint.current, contentScale: ContentScale = ContentScale.Fit, brush: BrushProducer? = LocalTintBrushProducer.current)

Иконка. Рисует предоставленный bitmap. Если tint явно задан, то он имеет приоритет над brush

fun Icon(painter: Painter, contentDescription: String?, modifier: Modifier = Modifier, tint: Color = LocalTint.current, contentScale: ContentScale = ContentScale.Fit, brush: BrushProducer? = LocalTintBrushProducer.current)

Иконка. Рисует предоставленный painter. Если tint явно задан, то он имеет приоритет над brush

fun Icon(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = Modifier, tint: Color = LocalTint.current, contentScale: ContentScale = ContentScale.Fit, brush: BrushProducer? = LocalTintBrushProducer.current)

Иконка. Рисует предоставленный imageVector. Если tint явно задан, то он имеет приоритет над brush

Link copied to clipboard
fun IconBadge(modifier: Modifier = Modifier, style: BadgeStyle = LocalIconBadgeStyle.current, content: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<IconBadgeMotionStyle> = rememberIconBadgeMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Badge c иконкой

Link copied to clipboard

Возвращает экземпляр IconBadgeStyleBuilder для Solid

Link copied to clipboard
fun IconButton(iconRes: Int, modifier: Modifier = Modifier, iconContentDescription: String? = null, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null, onClick: () -> Unit)
fun IconButton(iconRes: Int, motion: Motion<IconButtonMotionStyle>, modifier: Modifier = Modifier, iconContentDescription: String? = null, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, onClickLabel: String? = null, onClick: () -> Unit)
fun IconButton(icon: Painter, onClick: () -> Unit, modifier: Modifier = Modifier, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null)
fun IconButton(icon: Painter, onClick: () -> Unit, modifier: Modifier = Modifier, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, iconContentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null)
fun IconButton(iconSource: ImageSource, modifier: Modifier = Modifier, iconContentDescription: String? = null, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null, onClick: () -> Unit)
fun IconButton(iconSource: ImageSource, motion: Motion<IconButtonMotionStyle>, modifier: Modifier = Modifier, iconContentDescription: String? = null, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, onClickLabel: String? = null, onClick: () -> Unit)
fun IconButton(icon: @Composable () -> Unit, onClick: () -> Unit, modifier: Modifier = Modifier, iconContentDescription: String? = null, style: ButtonStyle = LocalIconButtonStyle.current, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClickLabel: String? = null, motion: Motion<IconButtonMotionStyle> = rememberIconButtonMotion( motionContext = rememberMotionContext(interactionSource), ))

Кнопка с иконкой. Если loading == true, кнопка отобразит круглый индикатор загрузки. На время анимации загрузки контент будет скрыт или станет полупрозрачным в зависимости от стиля.

Link copied to clipboard

Возвращает экземпляр IconButtonStyleBuilder

Link copied to clipboard
fun IconTabItem(modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, icon: Int?, actionIcon: Int? = null, onActionClicked: () -> Unit = {}, count: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun IconTabItem(modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, icon: ImageSource? = null, actionIcon: ImageSource? = null, onActionClicked: () -> Unit = {}, count: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun IconTabItem(onClick: () -> Unit, modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, enabled: Boolean = true, action: @Composable () -> Unit? = null, counter: @Composable () -> Unit? = null, onClickLabel: String? = null, motion: Motion<TabItemMotionStyle> = rememberTabItemMotion(), content: @Composable () -> Unit)

Таб (Вкладка). Элемент, предназначенный для использования в Tabs. Может содержать иконку, кнопку действия, счетчик.

Link copied to clipboard
fun Image(painter: Painter, contentDescription: String?, modifier: Modifier = Modifier, style: ImageStyle = LocalImageStyle.current, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, ratio: Float? = style.ratio, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Размещает и рисует предоставленный painter

fun Image(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = Modifier, style: ImageStyle = LocalImageStyle.current, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, ratio: Float? = style.ratio, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Размещает и рисует предоставленный imageVector

fun Image(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = Modifier, style: ImageStyle = LocalImageStyle.current, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, ratio: Float? = style.ratio, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DrawScope.DefaultFilterQuality)

Размещает и рисует предоставленный bitmap

Link copied to clipboard

Применяет стиль ImageStyle к изображению

Link copied to clipboard

Создает ImageSource на основе ImageVector.

Link copied to clipboard
fun Indicator(modifier: Modifier = Modifier, style: IndicatorStyle = LocalIndicatorStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, stateSet: Set<ValueState> = emptySet(), motion: Motion<IndicatorMotionStyle> = rememberIndicatorMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент Indicator

Link copied to clipboard
fun Modifier.indicator(style: IndicatorStyle = LocalIndicatorStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, stateSet: Set<ValueState> = emptySet(), motion: Motion<IndicatorMotionStyle> = rememberIndicatorMotion( motionContext = rememberMotionContext(interactionSource), )): Modifier

Модификатор, который декорирует компонент как Indicator.

fun Modifier.indicator(alignment: Alignment, style: IndicatorStyle = LocalIndicatorStyle.current, horizontalPadding: Dp = 0.dp, verticalPadding: Dp = 0.dp, horizontalMode: IndicatorMode = IndicatorMode.Inner, verticalMode: IndicatorMode = IndicatorMode.Inner, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, stateSet: Set<ValueState> = emptySet(), alpha: () -> Float = { 1f }, cutoutEnabled: Boolean = false, cutoutPadding: Dp = 3.dp): Modifier
fun Modifier.indicator(motion: Motion<IndicatorMotionStyle>, alignment: Alignment, style: IndicatorStyle = LocalIndicatorStyle.current, horizontalPadding: Dp = 0.dp, verticalPadding: Dp = 0.dp, horizontalMode: IndicatorMode = IndicatorMode.Inner, verticalMode: IndicatorMode = IndicatorMode.Inner, stateSet: Set<ValueState> = emptySet(), alpha: () -> Float = { 1f }, cutoutEnabled: Boolean = false, cutoutPadding: Dp = 3.dp): Modifier

Модификатор, который декорирует компонент как Indicator, с возможностью отрисовки Indicator как внутри, так и снаружи декорируемого компонента.

Link copied to clipboard

Проверяет совадает ли ключ элемента key с текущим значением значением selection

Link copied to clipboard
fun LinkButton(modifier: Modifier = Modifier, label: String, style: ButtonStyle = LocalLinkButtonStyle.current, icons: ButtonIcons? = null, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClick: () -> Unit, onClickLabel: String? = null, motion: Motion<LinkButtonMotionStyle> = rememberLinkButtonMotion( motionContext = rememberMotionContext(interactionSource), ))

Кнопка с текстом и иконкой с прозрачным фоном. Если loading == true, кнопка отобразит круглый индикатор загрузки. На время анимации загрузки контент будет скрыт или станет полупрозрачным в зависимости от стиля.

Link copied to clipboard

Возвращает экземпляр LinkButtonStyleBuilder

Link copied to clipboard
fun List(modifier: Modifier = Modifier, style: ListStyle = LocalListStyle.current, state: LazyListState = rememberLazyListState(), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, contentPadding: PaddingValues = UnspecifiedPaddingValues, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: LazyListScope.() -> Unit)
fun List(motion: Motion<ListMotionStyle>, modifier: Modifier = Modifier, style: ListStyle = LocalListStyle.current, state: LazyListState = rememberLazyListState(), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, contentPadding: PaddingValues = UnspecifiedPaddingValues, content: LazyListScope.() -> Unit)

Компонент List Представляет собой список ListItem либо произвольных элементов.

Link copied to clipboard
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconRes: Int?, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion(motionContext = rememberMotionContext(interactionSource)))
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, title: String, disclosureEnabled: Boolean = false, disclosureIcon: Painter? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun ListItem(modifier: Modifier = Modifier, titleContent: @Composable () -> Unit, style: ListItemStyle = LocalListItemStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, interactionSource) })
fun ListItem(motion: Motion<ListItemMotionStyle>, titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, motion) })
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconSource: ImageSource? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент ListItem

Link copied to clipboard
fun RowScope.ListItemDisclosure(style: ListItemStyle = LocalListItemStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, icon: @Composable () -> Unit? = null, text: @Composable () -> Unit? = null)
fun RowScope.ListItemDisclosure(style: ListItemStyle = LocalListItemStyle.current, motion: Motion<ListItemMotionStyle>, icon: @Composable () -> Unit? = null, text: @Composable () -> Unit? = null)

Элемент Disclosue для ListItem

Link copied to clipboard
fun Loader(modifier: Modifier = Modifier, style: LoaderStyle = LocalLoaderStyle.current, spinnerStyle: SpinnerStyle = style.spinnerStyle, circularProgressStyle: CircularProgressBarStyle = style.circularProgressStyle, animationSpec: InfiniteRepeatableSpec<Float> = DefaultSpinnerAnimationSpec, progress: Float, valueContent: @Composable () -> Unit?, trackEnabled: Boolean? = null, loaderType: LoaderType = LoaderType.Spinner, interactionSource: InteractionSource = remember { MutableInteractionSource() })
fun Loader(modifier: Modifier = Modifier, style: LoaderStyle = LocalLoaderStyle.current, spinnerStyle: SpinnerStyle = style.spinnerStyle, circularProgressStyle: CircularProgressBarStyle = style.circularProgressStyle, animationSpec: InfiniteRepeatableSpec<Float> = DefaultSpinnerAnimationSpec, progress: Float, value: String = "", valueSuffix: String = "%", trackEnabled: Boolean? = null, loaderType: LoaderType = LoaderType.Spinner, interactionSource: InteractionSource = remember { MutableInteractionSource() })

Компонент Loader Компонент, который используется для уведомления пользователей о том, что загрузка началась. Может отображать бесконечный прогресс Spinner или конечный CircularProgressBar.

Link copied to clipboard
fun Modal(show: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, style: ModalStyle = LocalModalStyle.current, dialogProperties: DialogProperties = DefaultDialogProperties, hasClose: Boolean = true, closeIcon: Painter? = null, useNativeBlackout: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable BoxScope.() -> Unit)
fun Modal(show: Boolean, dimBackground: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, style: ModalStyle = LocalModalStyle.current, gravity: ModalGravity = ModalGravity.Center, dialogProperties: DialogProperties = DefaultOverlayDialogProperties, edgeToEdge: Boolean = true, hasClose: Boolean = true, closeIcon: Painter? = null, useNativeBlackout: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, animations: ModalAnimations = ModalAnimations(), content: @Composable BoxScope.() -> Unit)

Компонент Modal

Link copied to clipboard
fun ModalBottomSheet(modifier: Modifier = Modifier, style: ModalBottomSheetStyle = LocalModalBottomSheetStyle.current, sheetState: BottomSheetState = rememberModalBottomSheetState(Hidden), sheetGesturesEnabled: Boolean = true, onDismiss: () -> Unit = {}, handlePlacement: BottomSheetHandlePlacement = style.handlePlacement, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, fitContent: Boolean, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, edgeToEdge: Boolean = true, body: @Composable () -> Unit)
fun ModalBottomSheet(dimBackground: Boolean, fitContent: Boolean, modifier: Modifier = Modifier, style: ModalBottomSheetStyle = LocalModalBottomSheetStyle.current, sheetState: BottomSheetState = rememberModalBottomSheetState(Hidden), sheetGesturesEnabled: Boolean = true, onDismiss: () -> Unit = {}, handlePlacement: BottomSheetHandlePlacement = style.handlePlacement, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, useNativeBlackout: Boolean = true, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, edgeToEdge: Boolean = true, body: @Composable () -> Unit)
fun ModalBottomSheet(dimBackground: Boolean, fitContent: Boolean, motion: Motion<ModalBottomSheetMotionStyle>, modifier: Modifier = Modifier, style: ModalBottomSheetStyle = LocalModalBottomSheetStyle.current, sheetState: BottomSheetState = rememberModalBottomSheetState(Hidden), sheetGesturesEnabled: Boolean = true, onDismiss: () -> Unit = {}, handlePlacement: BottomSheetHandlePlacement = style.handlePlacement, useNativeBlackout: Boolean = true, edgeToEdge: Boolean = true, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, body: @Composable () -> Unit)

Компонент ModalBottomSheet

Link copied to clipboard
fun ModalDropdownMenu(opened: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, modifier: Modifier = Modifier, style: DropdownMenuStyle = LocalDropdownMenuStyle.current, clipHeight: Boolean = false, clipWidth: Boolean = false, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, alignment: PopoverAlignment = PopoverAlignment.Start, dialogProperties: DialogProperties = DefaultModalDropdownDialogProperties, popupProperties: PopupProperties = DefaultModalDropdownPopupProperties, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, offset: Dp = Dp.Unspecified, scrollState: LazyListState? = null, showEmptyState: Boolean = false, edgeToEdge: Boolean = true, dimBackground: Boolean = true, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, content: @Composable () -> Unit)
fun ModalDropdownMenu(opened: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, safeAreaPadding: PaddingValues, modifier: Modifier = Modifier, style: DropdownMenuStyle = LocalDropdownMenuStyle.current, clipHeight: Boolean = false, clipWidth: Boolean = false, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, alignment: PopoverAlignment = PopoverAlignment.Start, positionStrategy: PopoverPositionStrategy = PopoverPositionStrategy.Recalculate, dialogProperties: DialogProperties = DefaultModalDropdownDialogProperties, popupProperties: PopupProperties = DefaultModalDropdownPopupProperties, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), motion: Motion<DropdownMenuMotionStyle> = rememberDropdownMenuMotion(), offset: Dp = Dp.Unspecified, scrollState: LazyListState? = null, showEmptyState: Boolean = false, edgeToEdge: Boolean = true, dimBackground: Boolean = true, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, content: @Composable () -> Unit)

Модальный вариант DropdownMenu. Представляет собой раскрывающееся меню — отображает список пунктов поверх контента.

Link copied to clipboard

Применяет альфу alpha к цвету путём умножения на имеющуюся альфу.

Link copied to clipboard
fun NavigationBar(modifier: Modifier = Modifier, style: NavigationBarStyle = LocalNavigationBarStyle.current, textPlacement: NavigationBarTextPlacement = NavigationBarTextPlacement.Bottom, textAlign: NavigationBarTextAlign = NavigationBarTextAlign.Center, contentPlacement: NavigationBarContentPlacement = NavigationBarContentPlacement.Bottom, actionStart: @Composable () -> Unit? = null, actionEnd: @Composable () -> Unit? = null, textContent: @Composable () -> Unit? = null, content: @Composable () -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, onBackPressed: () -> Unit = {}, centerAlignmentStrategy: NavBarCenterAlignmentStrategy = NavBarCenterAlignmentStrategy.Absolute)
fun NavigationBar(modifier: Modifier = Modifier, style: NavigationBarStyle = LocalNavigationBarStyle.current, textPlacement: NavigationBarTextPlacement = NavigationBarTextPlacement.Bottom, textAlign: NavigationBarTextAlign = NavigationBarTextAlign.Center, contentPlacement: NavigationBarContentPlacement = NavigationBarContentPlacement.Bottom, actionStart: @Composable RowScope.() -> Unit? = null, actionEnd: @Composable RowScope.() -> Unit? = null, titleContent: @Composable () -> Unit? = null, descriptionContent: @Composable () -> Unit? = null, content: @Composable () -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, onBackPressed: () -> Unit = {}, centerAlignmentStrategy: NavBarCenterAlignmentStrategy = NavBarCenterAlignmentStrategy.Absolute)

Верхняя панель интерфейса, служащая для навигации и отображения ключевых действий.

Link copied to clipboard
fun NavigationDrawer(modifier: Modifier = Modifier, state: NavigationDrawerState = rememberNavigationDrawerState(), style: NavigationDrawerStyle = LocalNavigationDrawerStyle.current, motion: Motion<NavigationDrawerMotionStyle> = rememberNavigationDrawerMotion(state), expandOnFocus: Boolean = false, header: @Composable ColumnScope.() -> Unit? = null, footer: @Composable ColumnScope.() -> Unit? = null, content: @Composable ColumnScope.() -> Unit)
fun NavigationDrawer(lazyContent: LazyListScope.() -> Unit, modifier: Modifier = Modifier, state: NavigationDrawerState = rememberNavigationDrawerState(), style: NavigationDrawerStyle = LocalNavigationDrawerStyle.current, motion: Motion<NavigationDrawerMotionStyle> = rememberNavigationDrawerMotion(state), expandOnFocus: Boolean = false, header: @Composable ColumnScope.() -> Unit? = null, footer: @Composable ColumnScope.() -> Unit? = null, verticalArrangement: Arrangement.Vertical = style.dimensions.getDefaultArrangement(motion))

Навигационное меню с областями header, content и footer.

Link copied to clipboard
fun NavigationDrawerItem(icon: @Composable () -> Unit, modifier: Modifier = Modifier, style: NavigationDrawerItemStyle = LocalNavigationDrawerItemStyle.current, motion: Motion<NavigationDrawerItemMotionStyle> = rememberNavigationDrawerItemMotion(), selected: Boolean = false, enabled: Boolean = true, onClick: () -> Unit? = null, onClickLabel: String? = null, titleContent: @Composable () -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, indicator: @Composable () -> Unit? = null)

Item для NavigationDrawer.

Link copied to clipboard
fun Note(modifier: Modifier = Modifier, style: NoteStyle = LocalNoteStyle.current, title: String = "", text: String = "", closeIconRes: Int?, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, action: @Composable BoxScope.() -> Unit? = null)
fun Note(modifier: Modifier = Modifier, style: NoteStyle = LocalNoteStyle.current, title: String = "", text: String = "", closeIconSource: ImageSource? = null, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, action: @Composable BoxScope.() -> Unit? = null)
fun Note(motion: Motion<NoteMotionStyle>, titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: NoteStyle = LocalNoteStyle.current, textContent: @Composable () -> Unit? = null, closeIcon: @Composable BoxScope.() -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, contentAfter: @Composable BoxScope.() -> Unit? = null)
fun Note(modifier: Modifier = Modifier, style: NoteStyle = LocalNoteStyle.current, title: String = "", text: String = "", closeIconSource: ImageSource? = null, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, contentAfter: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() })
fun Note(titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: NoteStyle = LocalNoteStyle.current, textContent: @Composable () -> Unit? = null, closeIcon: @Composable BoxScope.() -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, semanticStateSource: SemanticStateSource = remember { MutableSemanticStateSource() }, contentAfter: @Composable BoxScope.() -> Unit? = null)

Компонент Note

Link copied to clipboard
fun NoteCompact(modifier: Modifier = Modifier, style: NoteCompactStyle = LocalNoteCompactStyle.current, title: String = "", text: String = "", closeIconRes: Int?, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, action: @Composable BoxScope.() -> Unit? = null)
fun NoteCompact(modifier: Modifier = Modifier, style: NoteCompactStyle = LocalNoteCompactStyle.current, title: String = "", text: String = "", closeIconSource: ImageSource? = null, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, action: @Composable BoxScope.() -> Unit? = null)
fun NoteCompact(motion: Motion<NoteMotionStyle>, titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: NoteCompactStyle = LocalNoteCompactStyle.current, textContent: @Composable () -> Unit? = null, closeIcon: @Composable BoxScope.() -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, contentAfter: @Composable BoxScope.() -> Unit? = null)
fun NoteCompact(modifier: Modifier = Modifier, style: NoteCompactStyle = LocalNoteCompactStyle.current, title: String = "", text: String = "", closeIconSource: ImageSource? = null, onClose: () -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, contentAfter: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() })
fun NoteCompact(titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: NoteCompactStyle = LocalNoteCompactStyle.current, textContent: @Composable () -> Unit? = null, closeIcon: @Composable BoxScope.() -> Unit? = null, contentBefore: @Composable BoxScope.() -> Unit? = null, action: @Composable BoxScope.() -> Unit? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, semanticStateSource: SemanticStateSource = remember { MutableSemanticStateSource() }, contentAfter: @Composable BoxScope.() -> Unit? = null)

Компонент NoteCompact

Link copied to clipboard
fun Notification(modifier: Modifier = Modifier, style: NotificationStyle = LocalNotificationStyle.current, hasClose: Boolean = false, closeIcon: Painter? = null, onClose: () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable BoxScope.() -> Unit)
fun Notification(closeContentDescription: String, modifier: Modifier = Modifier, style: NotificationStyle = LocalNotificationStyle.current, hasClose: Boolean = false, closeIcon: Painter? = null, onClose: () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable BoxScope.() -> Unit)

Компонент Notification

Link copied to clipboard
fun NotificationContent(modifier: Modifier = Modifier, style: NotificationContentStyle = LocalNotificationContentStyle.current, title: String = "", text: String = "", iconRes: Int?, interactionSource: InteractionSource = remember { MutableInteractionSource() }, buttons: NotificationContentButtonsScope.() -> Unit? = null)
fun NotificationContent(modifier: Modifier = Modifier, style: NotificationContentStyle = LocalNotificationContentStyle.current, title: String = "", text: String = "", iconSource: ImageSource? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, buttons: NotificationContentButtonsScope.() -> Unit? = null)

Контент для компонента уведомлений Notification

Link copied to clipboard
fun Overlay(modifier: Modifier = Modifier, style: OverlayStyle = LocalOverlayStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, alpha: () -> Float = { 1f }, content: @Composable BoxScope.() -> Unit = {})

Компонент Overlay. Представляет собой стилизованный контейнер.

Link copied to clipboard
fun PaginationDots(modifier: Modifier = Modifier, style: PaginationDotsStyle = LocalPaginationDotsStyle.current, selectedIndex: Int, totalCount: Int, visibleCount: Int = 5, scrollAnimationSpec: AnimationSpec<Float> = tween( durationMillis = SCROLL_ANIMATION_DURATION, easing = FastOutSlowInEasing, ))

Элементы переключения. Отображают возможность перемещения между небольшим количеством однородных элементов контента.

Link copied to clipboard
fun Popover(show: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, style: PopoverStyle = LocalPopoverStyle.current, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, triggerCentered: Boolean = false, alignment: PopoverAlignment = PopoverAlignment.Start, tailEnabled: Boolean = true, duration: Long? = null, popupProperties: PopupProperties = DefaultPopupProperties, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun Popover(show: Boolean, onDismissRequest: () -> Unit, triggerInfo: TriggerInfo, safeAreaPadding: PaddingValues, style: PopoverStyle = LocalPopoverStyle.current, placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, triggerCentered: Boolean = false, alignment: PopoverAlignment = PopoverAlignment.Start, tailEnabled: Boolean = true, duration: Long? = null, popupProperties: PopupProperties = DefaultPopupProperties, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), motion: Motion<PopoverMotionStyle> = rememberPopoverMotion(), positionStrategy: PopoverPositionStrategy = PopoverPositionStrategy.Recalculate, content: @Composable () -> Unit)

Компонент Popover. Представляет из себя всплывающее окно, привязанное к какому-либо тригеру.

Link copied to clipboard

Модификатор, позволяющий получать информацию о размещении триггера, необходимую для корректной работы Popover, Tooltip, DropdownMenu

fun Modifier.popoverTrigger(triggerInfo: MutableState<TriggerInfo>, shape: Shape = RectangleShape, cutoutPaddings: PaddingValues = PaddingValues(0.dp), enabled: Boolean = true): Modifier

Модификатор, позволяющий получать информацию о размещении и форме триггера, необходимую для корректной работы Popover, Tooltip, DropdownMenu.

Link copied to clipboard
fun prefixSuffixTransformation(prefix: String? = null, suffix: String? = null, prefixTextStyle: TextStyle = TextStyle(), suffixTextStyle: TextStyle = TextStyle()): VisualTransformation

Вернет VisualTransformation, которая добавит префикс prefix и/или суффикс suffix. Отступ до основного текста будет иметь ширину пробела в соответствующем текстовом стиле.

Link copied to clipboard
fun ProgressBar(motion: Motion<ProgressBarMotionStyle>, progress: Float, modifier: Modifier = Modifier, style: ProgressBarStyle = LocalProgressBarStyle.current)
fun ProgressBar(progress: Float, modifier: Modifier = Modifier, style: ProgressBarStyle = LocalProgressBarStyle.current, interactionSource: InteractionSource = remember { MutableInteractionSource() })

Компонент ProgressBar.

Link copied to clipboard
fun ProvideTextBehaviour(behaviour: TextBehaviour, content: @Composable () -> Unit)

Функция используется для установки текущего значения LocalTextBehaviour

Link copied to clipboard
fun ProvideTextStyle(value: TextStyle, content: @Composable () -> Unit)
fun ProvideTextStyle(value: TextStyle, color: Color? = null, content: @Composable () -> Unit)
fun ProvideTextStyle(value: TextStyle, color: ColorProducer, content: @Composable () -> Unit)
fun ProvideTextStyle(value: TextStyle, brush: BrushProducer, content: @Composable () -> Unit)

Функция используется для установки текущего значения LocalTextStyle, объединяя заданный стиль с текущими значениями стиля для любых отсутствующих атрибутов. Любые текстовые компоненты, включенные в содержимое этого компонента, будут стилизованы этим стилем, если они не заданы явно.

Link copied to clipboard
fun RadioBox(checked: Boolean, modifier: Modifier = Modifier, style: RadioBoxStyle = LocalRadioBoxStyle.current, onClick: () -> Unit? = null, label: String? = null, description: String? = null, enabled: Boolean = true, animationDuration: Int = Int.MIN_VALUE, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<RadioBoxMotionStyle> = rememberRadioBoxMotion( motionContext = rememberMotionContext(interactionSource), ))
fun RadioBox(checked: Boolean, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: RadioBoxStyle = LocalRadioBoxStyle.current, onClick: () -> Unit? = null, descriptionContent: @Composable () -> Unit? = null, enabled: Boolean = true, animationDuration: Int = Int.MIN_VALUE, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<RadioBoxMotionStyle> = rememberRadioBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент RadioBox

Link copied to clipboard
fun RadioBoxGroup(modifier: Modifier = Modifier, style: RadioBoxGroupStyle = LocalRadioBoxGroupStyle.current, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, content: @Composable ColumnScope.() -> Unit)

Stateless вертикальная группа RadioBox.

fun <T : Any> RadioBoxGroup(modifier: Modifier = Modifier, style: RadioBoxGroupStyle = LocalRadioBoxGroupStyle.current, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, default: T? = null, content: @Composable RadioBoxGroupScope.(selection: MutableState<T?>) -> Unit)

Stateful вертикальная группа RadioBox.

Link copied to clipboard
fun RectSkeleton(modifier: Modifier = Modifier, style: RectSkeletonStyle = LocalRectSkeletonStyle.current, duration: Int = style.duration, brush: Brush = style.gradient.getDefaultValue(), shape: Shape = UnspecifiedShape, transition: InfiniteTransition = rememberInfiniteTransition(), motion: Motion<RectSkeletonMotionStyle> = rememberRectSkeletonMotion())
fun RectSkeleton(modifier: Modifier = Modifier, style: RectSkeletonStyle = LocalRectSkeletonStyle.current, duration: Int = style.duration, brush: StatefulValue<Brush> = style.gradient, shape: Shape = UnspecifiedShape, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, transition: InfiniteTransition = rememberInfiniteTransition(), motion: Motion<RectSkeletonMotionStyle> = rememberRectSkeletonMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент RectSkeleton

Link copied to clipboard
fun rememberCollapsingNavigationBarState(initialHeightOffsetLimit: Float = -Float.MAX_VALUE, initialHeightOffset: Float = 0.0f, initialContentOffset: Float = 0.0f): CollapsingNavigationBarState

Создает CollapsingNavigationBarState, который запоминается между композициями.

Link copied to clipboard
fun rememberDrawerState(initialValue: DrawerValue, alignment: DrawerAlignment = Start, confirmStateChange: (DrawerValue) -> Boolean = { true }): DrawerState

Создаёт и запоминает DrawerState с сохранением через rememberSaveable.

Link copied to clipboard
fun rememberNavigationDrawerState(initialValue: NavigationDrawerValue = NavigationDrawerValue.Collapsed): NavigationDrawerState

Создаёт и запоминает NavigationDrawerState с сохранением через rememberSaveable.

Link copied to clipboard
fun <T> rememberSelectMultipleDataStateManager(data: List<T>, valueInitializer: (T) -> Boolean = { false }): SelectDataStateManager<T>

Создает и запоминает SelectDataStateManager для режима множественного выбора.

Link copied to clipboard

Создает и запоминает SelectDataStateManager для режима одиночного выбора.

Link copied to clipboard

Создает ImageSource на основе drawable-ресурса.

Link copied to clipboard
fun resourceTextSource(id: Int, vararg args: Any = emptyArray()): TextSource

Создает TextSource на основе строкового ресурса.

Link copied to clipboard
fun ScrollBar(scrollState: ScrollState, modifier: Modifier = Modifier, style: ScrollBarStyle = LocalScrollBarStyle.current, orientation: Orientation = Orientation.Vertical, hasTrack: Boolean = false, hoverExpand: Boolean = true, alwaysShowScrollbar: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun ScrollBar(scrollState: LazyListState, modifier: Modifier = Modifier, style: ScrollBarStyle = LocalScrollBarStyle.current, orientation: Orientation = Orientation.Vertical, hasTrack: Boolean = false, hoverExpand: Boolean = true, alwaysShowScrollbar: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Интерактивный индикатор для горизонтального или вертикального перемещения по контенту

Link copied to clipboard
fun Modifier.scrollbar(state: ScrollState, direction: Orientation, indicatorThickness: Dp = 4.dp, indicatorColor: Color = Color.DarkGray, backgroundColor: Color = Color.LightGray, alpha: Float = if (state.isScrollInProgress) 0.8f else 0f, alphaAnimationSpec: AnimationSpec<Float> = tween( delayMillis = if (state.isScrollInProgress) 0 else 1500, durationMillis = if (state.isScrollInProgress) 150 else 500, ), padding: PaddingValues = PaddingValues(all = 0.dp)): Modifier

Добавляет scroll bar

Link copied to clipboard
fun SegmentHorizontal(modifier: Modifier = Modifier, style: SegmentStyle = LocalSegmentStyle.current, stretch: Boolean = true, hasBackground: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable SegmentScope.() -> Unit)
fun SegmentHorizontal(motion: Motion<SegmentMotionStyle>, modifier: Modifier = Modifier, style: SegmentStyle = LocalSegmentStyle.current, stretch: Boolean = true, hasBackground: Boolean = true, content: @Composable SegmentScope.() -> Unit)

Компонент Segment с горизонтальной ориентацией

Link copied to clipboard
fun SegmentItem(motion: Motion<SegmentItemMotionStyle>, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, isSelected: Boolean = false, style: SegmentItemStyle = LocalSegmentItemStyle.current, valueContent: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true)
fun SegmentItem(motion: Motion<SegmentItemMotionStyle>, label: String, modifier: Modifier = Modifier, isSelected: Boolean = false, style: SegmentItemStyle = LocalSegmentItemStyle.current, value: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true)
fun SegmentItem(motion: Motion<SegmentItemMotionStyle>, label: String, modifier: Modifier = Modifier, style: SegmentItemStyle = LocalSegmentItemStyle.current, isSelected: Boolean = false, value: String? = null, startIcon: Painter? = null, endIcon: Painter? = null, counter: String? = null, enabled: Boolean = true)
fun SegmentItem(labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, isSelected: Boolean = false, style: SegmentItemStyle = LocalSegmentItemStyle.current, valueContent: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, semanticStateSource: MutableSemanticStateSource = remember { MutableSemanticStateSource() })
fun SegmentItem(label: String, modifier: Modifier = Modifier, isSelected: Boolean = false, style: SegmentItemStyle = LocalSegmentItemStyle.current, value: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, semanticStateSource: MutableSemanticStateSource = remember { MutableSemanticStateSource() })
fun SegmentItem(label: String, modifier: Modifier = Modifier, style: SegmentItemStyle = LocalSegmentItemStyle.current, isSelected: Boolean = false, value: String? = null, startIcon: Painter? = null, endIcon: Painter? = null, counter: String? = null, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, semanticStateSource: MutableSemanticStateSource = remember { MutableSemanticStateSource() })

Компонент SegmentItem

Link copied to clipboard
fun SegmentVertical(modifier: Modifier = Modifier, style: SegmentStyle = LocalSegmentStyle.current, hasBackground: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable SegmentScope.() -> Unit)
fun SegmentVertical(motion: Motion<SegmentMotionStyle>, modifier: Modifier = Modifier, style: SegmentStyle = LocalSegmentStyle.current, hasBackground: Boolean = true, content: @Composable SegmentScope.() -> Unit)

Компонент Segment с вертикальной ориентацией

Link copied to clipboard
fun Select(modifier: Modifier = Modifier, style: SelectStyle = LocalSelectStyle.current, state: SelectState = remember { SelectState() }, dropdownProperties: DropdownProperties = DefaultSelectDropdownProperties, enabled: Boolean = true, readOnly: Boolean = false, showEmptyState: Boolean = false, trigger: @Composable SelectScope.() -> Unit, emptyState: @Composable DropdownScope.() -> Unit? = null, header: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, listContent: LazyListScope.() -> Unit)

Компонент выбора (Select) для Compose UI, предоставляющий функциональность выпадающего списка.

Link copied to clipboard
fun SelectScope.SelectButton(label: String, modifier: Modifier = Modifier, style: ButtonStyle = LocalButtonStyle.current, spacing: ButtonSpacing = ButtonSpacing.SpaceBetween, enabled: Boolean = true, readonly: Boolean = false, startIcon: Int?, iconOpened: Int?, iconClosed: Int?, onClickLabel: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun SelectScope.SelectButton(label: String, modifier: Modifier = Modifier, style: ButtonStyle = LocalButtonStyle.current, spacing: ButtonSpacing = ButtonSpacing.SpaceBetween, enabled: Boolean = true, readonly: Boolean = false, startIcon: ImageSource? = null, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, onClickLabel: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Компонент кнопки для выбора, предназначенный для использования внутри SelectScope. Отображает выбранное значение и управляет состоянием открытия/закрытия селектора.

Link copied to clipboard
fun SelectItem(motion: Motion<SelectItemMotionStyle>, checked: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, style: SelectItemStyle = LocalSelectItemStyle.current, enabled: Boolean = true, content: @Composable () -> Unit)

Элемент выбора с переходами собственных значений и состоянием Selected из checked. Произвольный content получает общий контекст только при явной передаче потребителем. Форма переключается без интерполяции, незаданные переходы используют noMotion().

fun SelectItem(checked: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, style: SelectItemStyle = LocalSelectItemStyle.current, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun SelectItem(checked: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, style: SelectItemStyle = LocalSelectItemStyle.current, enabled: Boolean = true, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, titleContent: @Composable () -> Unit)

Элемент компонента выбора Select. Поддерживает представления одиночного (radio) и множественного (checkbox) выбора.

fun SelectItem(motion: Motion<SelectItemMotionStyle>, checked: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, style: SelectItemStyle = LocalSelectItemStyle.current, enabled: Boolean = true, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit? = null, titleContent: @Composable () -> Unit)

Элемент выбора с переходами собственных значений и состоянием Selected из checked. Встроенные Cell/CheckBox используют контекст строки и собственные стили переходов.

Link copied to clipboard
fun SelectScope.SelectTextField(modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, value: TextFieldValue, iconOpened: Int?, iconClosed: Int?, readOnly: Boolean = false, enabled: Boolean = false, placeholderText: String? = null, labelText: String? = null, captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun SelectScope.SelectTextField(value: String, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: Int?, iconClosed: Int?, readOnly: Boolean = false, enabled: Boolean = false, placeholderText: String? = null, labelText: String? = null, captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): <Error class: unknown class>
fun SelectScope.SelectTextField(modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, value: TextFieldValue, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, readOnly: Boolean = false, enabled: Boolean = false, placeholderText: String? = null, labelText: String? = null, captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun SelectScope.SelectTextField(value: String, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, iconOpened: ImageSource? = null, iconClosed: ImageSource? = null, readOnly: Boolean = false, enabled: Boolean = false, placeholderText: String? = null, labelText: String? = null, captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, focusSelectorSettings: FocusSelectorSettings = LocalFocusSelectorSettings.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Компонент текстового поля для выбора, предназначенный для использования внутри SelectScope. Упрощенная версия с базовым строковым значением.

Link copied to clipboard
fun Modifier.shimmer(brush: Brush, shape: Shape = RectangleShape, durationMillis: Int = 1000, transition: InfiniteTransition = rememberInfiniteTransition(label = "shimmer")): Modifier
fun Modifier.shimmer(brushProducer: BrushProducer, shape: Shape = RectangleShape, durationMillis: Int = 1000, transition: InfiniteTransition = rememberInfiniteTransition(label = "shimmer")): Modifier

Позволяет применить шиммер-анимацию. Выглядит как бесконечно перемещающийся прямоугольник, покрашенный в градиент.

Link copied to clipboard
fun Slider(modifier: Modifier = Modifier, style: SliderStyle = LocalSliderStyle.current, value: Float = 0.0f, title: String = "", labelContent: @Composable () -> Unit? = null, onValueChange: (Float) -> Unit, slideDirection: SlideDirection = style.slideDirection, alignment: SliderAlignment = style.alignment, valueRange: ClosedFloatingPointRange<Float> = 0f..1f, valueMode: ValueMode = ValueMode.Interaction, valuePlacement: ValuePlacement = style.valuePlacement, valueFormatTransformer: ValueFormatTransformer = ValueFormatTransformer { it.toString() }, thumbEnabled: Boolean = true, labelEnabled: Boolean = true, limitLabelEnabled: Boolean = true, interactionSource: InteractionSource = remember { MutableInteractionSource() })

Компонент Slider. Применяется для указания значения (value) из заданного диапозона. Представляет собой полосу прогресса совместно с Label, блоком, включающим в себя заголовок (title) и иконку (labelContent), с возможностью конфигурирования расположения этих блоков.

Link copied to clipboard
fun Spinner(modifier: Modifier = Modifier, style: SpinnerStyle = LocalSpinnerStyle.current, animationSpec: InfiniteRepeatableSpec<Float> = DefaultSpinnerAnimationSpec, interactionSource: InteractionSource = remember { MutableInteractionSource() }, motion: Motion<SpinnerMotionStyle> = rememberMotion(LocalSpinnerMotionStyle.current))

Spinner

Link copied to clipboard
fun Splitter(hasHandle: Boolean, modifier: Modifier = Modifier, style: SplitterStyle = LocalSplitterStyle.current, orientation: SplitterOrientation = LocalSplitterOrientation.current, motion: Motion<SplitterMotionStyle> = rememberSplitterMotion())

Компонент Splitter - используется для визуального разделения контента

Link copied to clipboard
fun StaticList(modifier: Modifier = Modifier, style: ListStyle = LocalListStyle.current, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, contentPadding: PaddingValues = UnspecifiedPaddingValues, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: StaticListScope.() -> Unit)
fun StaticList(motion: Motion<ListMotionStyle>, modifier: Modifier = Modifier, style: ListStyle = LocalListStyle.current, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = DefaultVerticalArrangement, horizontalAlignment: Alignment.Horizontal = Alignment.Start, contentPadding: PaddingValues = UnspecifiedPaddingValues, content: StaticListScope.() -> Unit)

Компонент StaticList

Link copied to clipboard

Создает TextSource на основе обычной строки.

Link copied to clipboard
fun Switch(active: Boolean, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, onActiveChanged: (Boolean) -> Unit? = null, style: SwitchStyle = LocalSwitchStyle.current, descriptionContent: @Composable () -> Unit? = null, animationDuration: Int = Int.MIN_VALUE, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<SwitchMotionStyle> = rememberSwitchMotion( motionContext = rememberMotionContext( semanticStateSource = rememberSwitchSemanticStateSource(active), interactionSource = interactionSource, ), ))
fun Switch(active: Boolean, modifier: Modifier = Modifier, onActiveChanged: (Boolean) -> Unit? = null, label: String? = null, description: String? = null, style: SwitchStyle = LocalSwitchStyle.current, labelMaxLines: Int = Int.MAX_VALUE, descriptionMaxLines: Int = Int.MAX_VALUE, animationDuration: Int = Int.MIN_VALUE, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<SwitchMotionStyle> = rememberSwitchMotion( motionContext = rememberMotionContext( semanticStateSource = rememberSwitchSemanticStateSource(active), interactionSource = interactionSource, ), ))
fun Switch(active: Boolean, modifier: Modifier = Modifier, onActiveChanged: (Boolean) -> Unit? = null, label: String? = null, description: String? = null, style: SwitchStyle = LocalSwitchStyle.current, dimensions: SwitchDimensions = style.dimensions, colors: SwitchColors = style.colors, labelTextStyle: TextStyle = style.labelStyle, descriptionTextStyle: TextStyle = style.descriptionStyle, labelMaxLines: Int = Int.MAX_VALUE, descriptionMaxLines: Int = Int.MAX_VALUE, animationDuration: Int = style.animationDurationMillis, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Компонент Switch (переключатель)

Link copied to clipboard
fun TabBar(modifier: Modifier = Modifier, style: TabBarStyle = LocalTabBarStyle.current, interactionSource: InteractionSource = remember { MutableInteractionSource() }, content: TabBarScope.() -> Unit)
fun TabBar(motion: Motion<TabBarMotionStyle>, modifier: Modifier = Modifier, style: TabBarStyle = LocalTabBarStyle.current, content: TabBarScope.() -> Unit)

Компонент для навигации между разделами интерфейса

Link copied to clipboard
fun TabBarItem(modifier: Modifier = Modifier, isSelected: Boolean, onClick: () -> Unit? = null, style: TabBarItemStyle = LocalTabBarItemStyle.current, defaultIcon: Int, selectedIcon: Int, label: String? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, extra: @Composable () -> Unit? = null)
fun TabBarItem(modifier: Modifier = Modifier, isSelected: Boolean, onClick: () -> Unit? = null, style: TabBarItemStyle = LocalTabBarItemStyle.current, defaultIcon: ImageSource, selectedIcon: ImageSource, label: String? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, extra: @Composable () -> Unit? = null)
fun TabBarItem(modifier: Modifier = Modifier, isSelected: Boolean = false, onClick: () -> Unit? = null, style: TabBarItemStyle = LocalTabBarItemStyle.current, defaultIcon: @Composable () -> Unit, selectedIcon: @Composable () -> Unit, label: String? = null, interactionSource: InteractionSource = remember { MutableInteractionSource() }, extra: @Composable () -> Unit? = null)
fun TabBarItem(icon: @Composable () -> Unit, modifier: Modifier = Modifier, isSelected: Boolean = false, onClick: () -> Unit? = null, onClickLabel: String? = null, style: TabBarItemStyle = LocalTabBarItemStyle.current, labelContent: @Composable () -> Unit? = null, extra: @Composable () -> Unit? = null, motion: Motion<TabBarItemMotionStyle> = rememberTabBarItemMotion())

Элемент TabBar

Link copied to clipboard
fun TabItem(actionIcon: Int, modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, label: String? = null, helpText: String? = null, count: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, onActionClicked: () -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun TabItem(modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, label: String? = null, helpText: String? = null, count: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, actionIcon: ImageSource? = null, onActionClicked: () -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun TabItem(onClick: () -> Unit, modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, enabled: Boolean = true, helperContent: @Composable () -> Unit? = null, counter: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, action: @Composable () -> Unit? = null, onClickLabel: String? = null, motion: Motion<TabItemMotionStyle> = rememberTabItemMotion(), content: @Composable () -> Unit)

Таб (Вкладка). Элемент, предназначенный для использования в Tabs. Может содержать контент в начале и в конце, основной текст, дополнительный текст, кнопку действия, счетчик.

Link copied to clipboard
fun Tabs(modifier: Modifier = Modifier, style: TabsStyle = LocalTabsStyle.current, selectedTabIndex: Int, onTabClicked: (Int) -> Unit, clip: TabsClip = TabsClip.None, stretch: Boolean = false, enabled: Boolean = true, indicatorEnabled: Boolean = style.indicatorEnabled, dividerEnabled: Boolean = style.dividerEnabled, orientation: TabsOrientation = style.orientation, interactionSource: InteractionSource = remember { MutableInteractionSource() }, tabs: TabScope.() -> Unit)
fun Tabs(selectedTabIndexProvider: () -> Int, modifier: Modifier = Modifier, style: TabsStyle = LocalTabsStyle.current, onDisclosureTabClicked: (Int) -> Unit? = null, selectedTabOffset: () -> Float = { 0f }, clip: TabsClip = TabsClip.None, stretch: Boolean = false, enabled: Boolean = true, indicatorEnabled: Boolean = style.indicatorEnabled, dividerEnabled: Boolean = style.dividerEnabled, orientation: TabsOrientation = style.orientation, motion: Motion<TabsMotionStyle> = rememberTabsMotion(), tabs: TabScope.() -> Unit)

Элемент навигации, состоящий из нескольких вкладок. В компоненте доступно отображение максимум 10 табов.

Link copied to clipboard
fun Text(text: String, textBrush: Brush, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines)
fun Text(text: String, textColor: Color, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines)
fun Text(text: AnnotatedString, textBrush: Brush, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf())
fun Text(text: AnnotatedString, textColor: Color, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf())
fun Text(source: TextSource, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf(), brush: BrushProducer? = LocalTextBrushProducer.current)
fun Text(source: TextSource, textBrush: Brush, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf())
fun Text(source: TextSource, textColor: Color, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf())
fun Text(text: String, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, color: ColorProducer? = LocalTextColorProducer.current, brush: BrushProducer? = LocalTextBrushProducer.current)
fun Text(text: AnnotatedString, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, onTextLayout: (TextLayoutResult) -> Unit = {}, overflow: TextOverflow = LocalTextBehaviour.current.overflow, softWrap: Boolean = LocalTextBehaviour.current.softWrap, maxLines: Int = LocalTextBehaviour.current.maxLines, inlineContent: Map<String, InlineTextContent> = mapOf(), color: ColorProducer? = LocalTextColorProducer.current, brush: BrushProducer? = LocalTextBrushProducer.current)

Текст

Link copied to clipboard
fun TextField(value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorMode: FocusSelectorMode = LocalFocusSelectorMode.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun TextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorMode: FocusSelectorMode = LocalFocusSelectorMode.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun TextField(value: TextFieldValue, onValueChange: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<TextFieldMotionStyle> = rememberTextFieldMotion( motionContext = rememberMotionContext(interactionSource), ))
fun TextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, style: TextFieldStyle = LocalTextFieldStyle.current, enabled: Boolean = true, readOnly: Boolean = false, placeholderText: String? = null, labelText: String = "", captionText: String? = null, counterText: String? = null, optionalText: String? = null, prefix: String? = null, suffix: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, chipsContent: @Composable () -> Unit? = null, animation: TextFieldAnimation = TextFieldAnimation(), keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, focusSelectorSettings: FocusSelectorSettings, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<TextFieldMotionStyle> = rememberTextFieldMotion( motionContext = rememberMotionContext(interactionSource), ))

Поле ввода текста.

Link copied to clipboard
fun TextSkeleton(modifier: Modifier = Modifier, style: TextSkeletonStyle = LocalTextSkeletonStyle.current, lineCount: Int = 3, textStyle: TextStyle = UnspecifiedTextStyle, lineWidthProvider: SkeletonLineWidthProvider = SkeletonLineWidthProvider.RandomDeviation(), duration: Int = style.duration, brush: Brush = style.gradient.getDefaultValue(), shape: Shape = UnspecifiedShape, transition: InfiniteTransition = rememberInfiniteTransition(), motion: Motion<TextSkeletonMotionStyle> = rememberTextSkeletonMotion())

Компонент TextSkeleton

Link copied to clipboard
inline fun () -> Unit.throttled(intervalMs: Long = LocalThrottleIntervalMs.current): () -> Unit

Возвращает версию callback без аргументов, ограниченную по частоте вызовов (throttle).

inline fun <T> (T) -> Unit.throttled(intervalMs: Long = LocalThrottleIntervalMs.current): (T) -> Unit

Возвращает версию callback с одним аргументом, ограниченную по частоте вызовов (throttle).

inline fun <A, B> (A, B) -> Unit.throttled(intervalMs: Long = LocalThrottleIntervalMs.current): (A, B) -> Unit

Возвращает версию callback с двумя аргументами, ограниченную по частоте вызовов (throttle).

Link copied to clipboard
fun throttledCallback(intervalMs: Long = LocalThrottleIntervalMs.current, onEvent: () -> Unit): () -> Unit

Создает троттлинг-обертку над callback без аргументов.

fun <T> throttledCallback(intervalMs: Long = LocalThrottleIntervalMs.current, onEvent: (T) -> Unit): (T) -> Unit

Создает троттлинг-обертку над callback с одним аргументом.

fun <A, B> throttledCallback(intervalMs: Long = LocalThrottleIntervalMs.current, onEvent: (A, B) -> Unit): (A, B) -> Unit

Создает троттлинг-обертку над callback с двумя аргументами.

Link copied to clipboard
fun Toast(modifier: Modifier = Modifier, style: ToastStyle = LocalToastStyle.current, contentStart: @Composable () -> Unit? = null, contentEnd: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)
fun Toast(modifier: Modifier = Modifier, style: ToastStyle = LocalToastStyle.current, text: String = "Toast", contentStart: @Composable () -> Unit? = null, contentEnd: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Компонент Toast

Link copied to clipboard
fun ToolBar(hasDivider: Boolean, modifier: Modifier = Modifier, style: ToolBarStyle = LocalToolBarStyle.current, orientation: ToolBarOrientation = style.orientation, interactionSource: InteractionSource = remember { MutableInteractionSource() }, content: ToolBarScope.() -> Unit)

Компонент - вспомогательная панель с набором инструментов для работы на основном экране

Link copied to clipboard
fun Tooltip(show: Boolean, modifier: Modifier = Modifier, onDismissRequest: () -> Unit, triggerInfo: () -> TriggerInfo, style: TooltipStyle = LocalTooltipStyle.current, contentStart: @Composable () -> Unit? = null, text: AnnotatedString = AnnotatedString(""), placement: PopoverPlacement = PopoverPlacement.Top, placementMode: PopoverPlacementMode = PopoverPlacementMode.Loose, triggerCentered: Boolean = false, alignment: PopoverAlignment = PopoverAlignment.Start, tailEnabled: Boolean = true, duration: Long? = null, enterTransition: EnterTransition = fadeIn(), exitTransition: ExitTransition = fadeOut(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, popupProperties: PopupProperties = remember { DefaultPopupProperties }, motion: Motion<TooltipMotionStyle> = rememberTooltipMotion( motionContext = rememberMotionContext(interactionSource = interactionSource), ))

Компонент Tooltip. Представляет из себя всплывающую подсказку, привязанную к какому-либо тригеру.

Link copied to clipboard

Обновляет текущее значение selection значением ключа key

Link copied to clipboard
fun Wheel(modifier: Modifier = Modifier, style: WheelStyle = LocalWheelStyle.current, wheelCount: Int = style.wheelCount, hasControls: Boolean = true, visibleItemsCount: Int = style.visibleItemsCount, wheelSeparator: WheelSeparator = WheelSeparator.None, alignment: WheelAlignment = style.itemAlignment, wheelConstraints: WheelConstraints = WheelConstraints.Strict, dataEdgePlacement: DataEdgePlacement = DataEdgePlacement.WheelCenter, interactionSource: InteractionSource = remember { MutableInteractionSource() }, onItemSelected: (wheel: Int, item: Int) -> Unit = { _, _ -> }, onSetData: (Int) -> WheelDataSet)

Вертикальное колесо выбора. Используется для выбора одного значения из списка с визуальным фокусом на текущем значении.

Link copied to clipboard

Возвращает значение в dp - брейкпоинт по ширине для указанного класса размерности.