chore: docs

This commit is contained in:
mathuo 2025-03-10 21:28:33 +00:00
parent e34fb43913
commit 090f2d26f8
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
3 changed files with 4 additions and 4 deletions

View File

@ -24,12 +24,12 @@ The dock makes heavy use of drag and drop functionalities.
# Drag And Drop
You can override the conditions of the far edge overlays through the `rootOverlayModel` prop.
You can override the conditions of the far edge overlays through the `dndEdges` prop.
```tsx
<DockviewReact
{...props}
rootOverlayModel={{
dndEdges={{
size: { value: 100, type: 'pixels' },
activationSize: { value: 5, type: 'percentage' },
}}

View File

@ -180,7 +180,7 @@ const DndDockview = (props: { renderVisibleOnly: boolean; theme?: string }) => {
onReady={onReady}
className={`${props.theme || 'dockview-theme-abyss'}`}
onDidDrop={onDidDrop}
rootOverlayModel={{
dndEdges={{
size: { value: 100, type: 'pixels' },
activationSize: { value: 5, type: 'percentage' },
}}

View File

@ -179,7 +179,7 @@ const DndDockview = (props: { renderVisibleOnly: boolean; theme?: string }) => {
onReady={onReady}
className={`${props.theme || 'dockview-theme-abyss'}`}
onDidDrop={onDidDrop}
rootOverlayModel={{
dndEdges={{
size: { value: 100, type: 'pixels' },
activationSize: { value: 5, type: 'percentage' },
}}