Function: bracket()
bracket(
options?:object):ElementDecorator
Decorates an element with a grouping bracket (curly brace, square bracket, or corner frame).
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { className?: string; color?: string; dashed?: boolean; depth?: number; dotted?: boolean; glow?: string | boolean; label?: string; offset?: number; radius?: number; side?: "top" | "left" | "right" | "bottom"; strokeWidth?: number; style?: BracketStyle; } | - |
options.className? | string | Additional CSS class name. |
options.color? | string | Solid stroke color (default: "rgba(255, 255, 255, 0.25)"). |
options.dashed? | boolean | Dashed stroke pattern. |
options.depth? | number | Bracket depth / breadth in pixels (default: 16). |
options.dotted? | boolean | Dotted stroke pattern. |
options.glow? | string | boolean | Whether the bracket emits a neon bloom glow (default: false). |
options.label? | string | Optional label text placed at the bracket apex/center. |
options.offset? | number | Spacing distance between element border and bracket in pixels (default: 8). |
options.radius? | number | Corner radius / curvature in pixels (default: 8). |
options.side? | "top" | "left" | "right" | "bottom" | Which side the bracket sits on ("left" |
options.strokeWidth? | number | Bracket stroke thickness in pixels (default: 1.5). |
options.style? | BracketStyle | Bracket style: "curly" (default), "square", "round", or "corners". |