Canvas Menu
data class CanvasMenu<Scope : CanvasMenu.Scope>(val scope: Scope, val id: EditorComponentId, val modifier: Modifier, val visible: Boolean, val enterTransition: EnterTransition, val exitTransition: ExitTransition, val decoration: ScopedDecoration<Scope>, val listBuilder: HorizontalListBuilder<EditorComponent<*>>, val itemDecoration: ScopedDecoration<Scope>) : EditorComponent<Scope>
A component for rendering the canvas menu next to a design block when it is selected. Use CanvasMenu.Companion.remember composable function to create an instance of this class. Check AbstractCanvasMenuBuilder and its superclasses to see what each property does.
Constructors
Link copied to clipboard
constructor(scope: Scope, id: EditorComponentId, modifier: Modifier, visible: Boolean, enterTransition: EnterTransition, exitTransition: ExitTransition, decoration: ScopedDecoration<Scope>, listBuilder: HorizontalListBuilder<EditorComponent<*>>, itemDecoration: ScopedDecoration<Scope>)
Types
Link copied to clipboard
Builder class of Button component inside the CanvasMenu.
Link copied to clipboard
Builder class of Divider component inside the CanvasMenu.
Link copied to clipboard
Scope of the items inside the CanvasMenu.
Link copied to clipboard
object ListBuilder
Link copied to clipboard
Scope of the CanvasMenu component.