Primitives
Editor.BrushWeightSlider
Drawing-mode slider that controls stroke width.
Drawing-mode slider that controls stroke width.
Usage
import { Editor } from '@docmosaic/react';
<Editor.Root>
<Editor.BrushWeightSlider />
</Editor.Root>;API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value * | number | - | Active brush weight in PDF points (1-20). |
| onChange * | (weight: number) => void | - | Fired when the user moves the slider. |
| min | number | undefined | - | Optional minimum weight. Defaults to |
| max | number | undefined | - | Optional maximum weight. Defaults to |
| previewColor | string | undefined | - | Optional preview color used by the swatch. Defaults to current weight color. |
| className | string | undefined | - | - |
Related
- Root - the orchestrator