Floating Action Button
A prominent, circular button that performs the primary action on the screen.
Properties
Preview
Generated Code
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
@Composable
fun MyFloatingActionButton() {
FloatingActionButton(
onClick = { /*TODO*/ }
) {
Icon(
Icons.Filled.Add,
contentDescription = "Add"
)
}
}