@whittakertech/mosaic / CSSClassContract
Interface: CSSClassContract
Defined in: css/contract.ts:12
Defines the semantic CSS class contract used by MosaicJS.
Each property represents a stable, meaning-based styling hook that may be applied during the drag lifecycle.
Remarks
MosaicJS does not impose visual styles. These class names are intended to integrate with external design systems or utility frameworks.
Properties
active
ts
active: string;Defined in: css/contract.ts:14
Applied to the element currently being dragged
dropAllowed
ts
dropAllowed: string;Defined in: css/contract.ts:23
Applied when a drop is allowed
dropRejected
ts
dropRejected: string;Defined in: css/contract.ts:26
Applied when a drop is rejected
dropTarget
ts
dropTarget: string;Defined in: css/contract.ts:20
Applied to valid drop targets
ghost
ts
ghost: string;Defined in: css/contract.ts:17
Applied to the ghost/clone element