<div class='sourceset sourceset-android'>Android</div>

```kotlin
public object AlertDialogDefaults
```

Contains the default values used by [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog)

## Functions

<h2 id="edgebutton-onclick-modifier-colors-content">EdgeButton</h2>

```kotlin
@Composable
public fun EdgeButton(
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: ButtonColors = ButtonDefaults.buttonColors(),
    content: @Composable RowScope.() -> Unit = ConfirmIcon,
)
```

Default composable for the edge button in an [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog). This is a medium sized
[EdgeButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/EdgeButton). Should be used with [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) overload which contains a single edgeButton
slot.

#### Parameters

| | |
| --- | --- |
| onClick | The callback to be invoked when the button is clicked. |
| modifier | The [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to be applied to the button. |
| colors | The [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ButtonColors) to be used for the button. |
| content | The composable content of the button. Defaults to `ConfirmIcon`. |

<hr class="docs-overload-divider">

<h2 id="confirmbutton-onclick-modifier-colors-content">ConfirmButton</h2>

```kotlin
@Composable
public fun ConfirmButton(
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: IconButtonColors = IconButtonDefaults.filledIconButtonColors(),
    content: @Composable RowScope.() -> Unit = ConfirmIcon,
)
```

Default composable for the confirm button in an [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog). Should be used with
[AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) overload which has 2 button slots to confirm or dismiss the action.

#### Parameters

| | |
| --- | --- |
| onClick | The callback to be invoked when the button is clicked. |
| modifier | The [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to be applied to the button. |
| colors | The [IconButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/IconButtonColors) to be used for the button. |
| content | The composable content of the button. Defaults to `ConfirmIcon`. |

<hr class="docs-overload-divider">

<h2 id="dismissbutton-onclick-modifier-colors-content">DismissButton</h2>

```kotlin
@Composable
public fun DismissButton(
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: IconButtonColors = IconButtonDefaults.filledTonalIconButtonColors(),
    content: @Composable RowScope.() -> Unit = DismissIcon,
)
```

Default composable for the dismiss button in an [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog). Should be used with
[AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) overload which has 2 button slots to confirm or dismiss the action.

#### Parameters

| | |
| --- | --- |
| onClick | The callback to be invoked when the button is clicked. |
| modifier | The [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to be applied to the button. |
| colors | The [IconButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/IconButtonColors) to be used for the button. |
| content | The composable content of the button. Defaults to `DismissIcon`. |

<hr class="docs-overload-divider">

<h2 id="confirmdismisscontentpadding">confirmDismissContentPadding</h2>

```kotlin
@Composable
public fun confirmDismissContentPadding(): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) variation with confirm dismiss
buttons and no icon content.

<hr class="docs-overload-divider">

<h2 id="confirmdismisswithiconcontentpadding">confirmDismissWithIconContentPadding</h2>

```kotlin
@Composable
public fun confirmDismissWithIconContentPadding(): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) variation when an icon is
provided and with confirm dismiss buttons.

<hr class="docs-overload-divider">

<h2 id="contentpadding">contentPadding</h2>

```kotlin
@Composable
public fun contentPadding(): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) with either a stack of buttons
(no confirm or dismiss buttons) or an EdgeButton, and when there is no icon. For the
EdgeButton variation, the bottom padding is ignored.

<hr class="docs-overload-divider">

<h2 id="contentwithiconpadding">contentWithIconPadding</h2>

```kotlin
@Composable
public fun contentWithIconPadding(): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) with either a stack of buttons
(no confirm or dismiss buttons) or an EdgeButton, and when there is an icon. For the
EdgeButton variation, the bottom padding is ignored.

<hr class="docs-overload-divider">

<h2 id="buttonstackcontentpadding-isscrollable">buttonStackContentPadding</h2>

```kotlin
@Composable
public fun buttonStackContentPadding(isScrollable: Boolean): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) variation using
TransformingLazyColumn, without an icon, and with a stack of buttons for options. Bottom
padding is calculated based on the provided `isScrollable` parameter, which favors the use of
a bigger padding for scrollable content and a smaller one for fixed content.

<hr class="docs-overload-divider">

<h2 id="buttonstackwithiconcontentpadding-isscrollable">buttonStackWithIconContentPadding</h2>

```kotlin
@Composable
public fun buttonStackWithIconContentPadding(isScrollable: Boolean): PaddingValues
```

The padding to apply around the content for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) variation using
TransformingLazyColumn, with icon, and with a stack of buttons for options. Bottom padding is
calculated based on the provided `isScrollable` parameter, which favors the use of a bigger
padding for scrollable content and a smaller one for fixed content.

<hr class="docs-overload-divider">

<h2 id="groupseparator">GroupSeparator</h2>

```kotlin
@Composable
public fun GroupSeparator()
```

Separator for the [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog). Should be used inside [AlertDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/AlertDialog) content for splitting
groups of elements.