Fieldset
moleculesBordered zone whose legend rides the top border; droppable turns it into an HTML5 drop target with a hover highlight and hint.
Notification settings
legend groups related controls; tone and dashed set the frame; padding="sm" tightens a short group.
Tones, dashed and padding
tone="accent" | "neutral" | "strong"; dashed={false} for a solid frame; padding sm, md, lg; legend can be a snippet.
States
disabled greys the frame and its controls; bind:over paints the drop highlight from pointer-driven drag and drop; an empty zone shows its hint.
Drag between pools
droppable, accepts, dragPayload, ondrop and dropHint; the Move button is the keyboard path the drop target needs.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
legend | string | Snippet | — | |
tone | Tone | 'accent' | |
dashed | boolean | true | |
padding | 'sm' | 'md' | 'lg' | 'md' | |
droppable | boolean | false | |
mime | string | 'text/plain' | |
accepts | (data: string, e: DragEvent, types: readonly string[]) => boolean | — | `data` is the dataTransfer payload on drop, but during dragenter/dragover the dataTransfer is in protected mode and `getData` returns `''` — there `data` is `dragPayload` when given, otherwise `''`, and `types` is the only other signal. |
dragPayload | string | '' | Payload of the drag in flight when the app already knows it (a dragstart handler or a pointer-DnD store); stands in for the unreadable dataTransfer during dragover. |
ondrop | (data: string, e: DragEvent) => void | — | |
dropHint | string | Snippet | — | |
over bindable | boolean | false | |
disabled | boolean | false | |
class | string | '' | |
style | string | '' | |
children | Snippet | — |