@mocanvas/mocanvas · interface
interface StylePanelContextWhat every picker needs: the styles in play, and how to change one.
Published as context rather than passed down, so a caller can compose the panel out of individual pickers — or drop one into a contextual toolbar — without re-plumbing the same three things into each.
Methods · 1
setStyle<T>(style: StyleProp<T>, value: T): voidApply a style to the selection, or to the next shape when nothing is selected.
Properties · 3
disabled: booleanWhether the editor refuses edits.
isMobile: booleanWhether the panel is in its compact, popover-hosted form.
styles: ReturnType<typeof useRelevantStyles>mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.