Skip to main content

MosaicUncontrolledProps

react-mosaic-component


react-mosaic-component / MosaicUncontrolledProps

Interface: MosaicUncontrolledProps<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:130

Extends

  • MosaicBaseProps<T>

Type Parameters

T

T extends MosaicKey

Properties

blueprintNamespace?

optional blueprintNamespace?: string

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:114

Make it possible to use different versions of Blueprint with mosaic-blueprint-theme Note: does not support updating after instantiation default: 'bp3'

Inherited from

MosaicBaseProps.blueprintNamespace


canClose?

optional canClose?: TabCanCloseFunction<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:77

Function to determine if a tab can be closed

Inherited from

MosaicBaseProps.canClose


className?

optional className?: string

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:92

Additional classes to affix to the root element Default: 'mosaic-blueprint-theme'

Inherited from

MosaicBaseProps.className


createNode?

optional createNode?: CreateNode<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:79

Inherited from

MosaicBaseProps.createNode


dragAndDropManager?

optional dragAndDropManager?: DragDropManager

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:118

Override the react-dnd provider to allow applications to inject an existing drag and drop context

Inherited from

MosaicBaseProps.dragAndDropManager


initialValue

initialValue: T | LegacyMosaicParent<T> | MosaicSplitNode<T> | MosaicTabsNode<T> | null

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:135

The initial tree to render, can be modified by the user


mosaicId?

optional mosaicId?: string

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:108

Override the mosaicId passed to react-dnd to control how drag and drop works with other components Note: does not support updating after instantiation default: Random UUID

Inherited from

MosaicBaseProps.mosaicId


onChange?

optional onChange?: (newNode) => void

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:83

Called when a user initiates any change to the tree (removing, adding, moving, resizing, etc.)

Parameters

newNode

MosaicNode<T> | null

Returns

void

Inherited from

MosaicBaseProps.onChange


onRelease?

optional onRelease?: (newNode) => void

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:87

Called when a user completes a change (fires like above except for the interpolation during resizing)

Parameters

newNode

MosaicNode<T> | null

Returns

void

Inherited from

MosaicBaseProps.onRelease


renderTabButton?

optional renderTabButton?: TabButtonRenderer<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:73

Custom tab button renderer

Inherited from

MosaicBaseProps.renderTabButton


renderTabTitle?

optional renderTabTitle?: TabTitleRenderer<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:69

Function to render custom tab titles

Inherited from

MosaicBaseProps.renderTabTitle


renderTabToolbar?

optional renderTabToolbar?: TabToolbarRenderer<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:57

Lookup function to convert tab title to a displayable ReactElement

Inherited from

MosaicBaseProps.renderTabToolbar


renderTabToolbarControls?

optional renderTabToolbarControls?: TabToolbarControlsRenderer<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:65

Override the right-hand controls cluster in the default tab bar — the add, split, and remove buttons. Compose from DefaultAddTabButton, TabSplitButton, TabRemoveButton, or your own elements. The library keeps ownership of the tab-group drag handle. Ignored when renderTabToolbar is provided.

Inherited from

MosaicBaseProps.renderTabToolbarControls


renderTile

renderTile: TileRenderer<T>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:53

Lookup function to convert T to a displayable ReactElement

Inherited from

MosaicBaseProps.renderTile


resize?

optional resize?: ResizeOptions

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:97

Options that control resizing @see: [[ResizeOptions]]

Inherited from

MosaicBaseProps.resize


zeroStateView?

optional zeroStateView?: ReactElement<unknown, string | JSXElementConstructor<any>>

Defined in: libs/react-mosaic-component/src/lib/Mosaic.tsx:102

View to display when the current value is null default: Simple NonIdealState view

Inherited from

MosaicBaseProps.zeroStateView