Skip to content
comparison
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

comparison

Fragment reference comparison
tags
ui

Compares two content regions side-by-side with a draggable divider. Works best when both sides share the same dimensions. The handle can be dragged or controlled with arrow keys (Shift+arrows for larger steps, Home/End to jump to edges).

Usage

comparison
img(slot="before" src="before.jpg" alt="Before")
img(slot="after" src="after.jpg" alt="After")

Attributes

NameTypeDefaultDescription
positionnumber50Initial divider position as a percentage (0–100).

CSS Custom Properties

NameDescription
--divider-widthWidth of the dividing line.
--handle-sizeSize of the drag handle.