<div class='sourceset sourceset-common'>Common</div>

```kotlin
object FloatingActionButtonDefaults
```

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

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi val MediumIconSize = FabMediumTokens.IconSize
```

The recommended size of the icon inside a [MediumFloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/MediumFloatingActionButton).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val LargeIconSize = 36.dp // TODO: FabLargeTokens.IconSize is incorrect
```

The recommended size of the icon inside a [LargeFloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/LargeFloatingActionButton).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val shape: Shape
```

Default shape for a floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val smallShape: Shape
```

Default shape for a small floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val mediumShape: Shape
```

Default shape for a medium floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val largeShape: Shape
```

Default shape for a large floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extendedFabShape: Shape
```

Default shape for an extended floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val smallExtendedFabShape: Shape
```

Default shape for a small extended floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val mediumExtendedFabShape: Shape
```

Default shape for a medium extended floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val largeExtendedFabShape: Shape
```

Default shape for a large extended floating action button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val containerColor: Color
```

Default container color for a floating action button.

## Functions

<h2 id="elevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation">elevation</h2>

```kotlin
@Composable
    fun elevation(
        defaultElevation: Dp = FabPrimaryContainerTokens.ContainerElevation,
        pressedElevation: Dp = FabPrimaryContainerTokens.PressedContainerElevation,
        focusedElevation: Dp = FabPrimaryContainerTokens.FocusedContainerElevation,
        hoveredElevation: Dp = FabPrimaryContainerTokens.HoveredContainerElevation,
    ): FloatingActionButtonElevation
```

Creates a [FloatingActionButtonElevation](/jetpack-compose/androidx.compose.material3/material3/classes/FloatingActionButtonElevation) that represents the elevation of a
[FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) in different states. For use cases in which a less prominent
[FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is possible consider the [loweredElevation](#loweredelevation).

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is pressed. |
| focusedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is focused. |
| hoveredElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is hovered. |

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

<h2 id="loweredelevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation">loweredElevation</h2>

```kotlin
@Composable
    fun loweredElevation(
        defaultElevation: Dp = ElevationTokens.Level1,
        pressedElevation: Dp = ElevationTokens.Level1,
        focusedElevation: Dp = ElevationTokens.Level1,
        hoveredElevation: Dp = ElevationTokens.Level2,
    ): FloatingActionButtonElevation
```

Use this to create a [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) with a lowered elevation for less emphasis. Use
[elevation](#elevation) to get a normal [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton).

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is pressed. |
| focusedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is focused. |
| hoveredElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is hovered. |

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

<h2 id="bottomappbarfabelevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation">bottomAppBarFabElevation</h2>

```kotlin
fun bottomAppBarFabElevation(
        defaultElevation: Dp = 0.dp,
        pressedElevation: Dp = 0.dp,
        focusedElevation: Dp = 0.dp,
        hoveredElevation: Dp = 0.dp,
    ): FloatingActionButtonElevation
```

Use this to create a [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) that represents the default elevation of a
[FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) used for [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar) in different states.

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is pressed. |
| focusedElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is focused. |
| hoveredElevation | the elevation used when the [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton) is hovered. |