Parameters
The shape that defines the interactive area for hit testing. Can be any shape component like Circle, Rectangle, RoundedRectangle, etc.
Defines the content shape for hit testing and interaction.
.contentShape(shape: Shape): Component;
Text("Small text")
.contentShape(Rectangle())
.frame({ width: 100, height: 100 })
.onTapGesture(() => {
console.log("Tapped!")
})