send bar
the foot of a review: who the writing goes to, every address and file, and the one way out.
bunx --bun shadcn@latest add @mk/send-barserves orbit and artifacts.
example
tab to the button and press space, or click it. enter does nothing, so a key held from the last field can’t send. the title says what happened, and the button stays where it was.
one recipient
one person needs no facts: their name is the title and the address sits under it.
states
the bar prints on paper, so it reads the light roles in both modes. it’s a key block: the send prints in key, and the focus ring takes the first ink, where the rest of the page rings in the house ink.
ready
key, the whole column
sent
no fill, same place, same width
handoff
a link: the send happens elsewhere
uncertain
check first, retry beside it
ready
key, the whole column
sent
no fill, same place, same width
handoff
a link: the send happens elsewhere
uncertain
check first, retry beside it
in the panel
as the letter’s foot in a full working panel, names and addresses share their columns across the rows. both frames use an 880 px viewport.
in a narrow column
the bar answers to its own width. under 732 px the address drops below its name, and under 592 px the action moves below the facts.
on a phone
as the foot of a letter marked last, the bar runs to the panel’s edges and down to its foot. both frames use a 390 px viewport.
parts
SendBar- the paper, a
section. name it witharia-label. it holds two columns,SendBarToandSendBarActions. SendBarTitle- where it goes or where it went, in the display face. it announces itself when it changes.
SendBarAddress- one address under the title, for a single recipient.
SendBarFacts- the list, with
SendBarLabelfor each word. aSendBarFactis a person with anaddress, aSendBarFileis a file. several sit under one label. SendBarButton- the send, in key, or a second action with
variant="outline". enter never fires it, even from a field in the same form, and a label naming the reach tells a screen reader what a short word sends. SendBarLink- a handoff in key, for a send that happens elsewhere. takes an
hrefor the app’s router link throughrender, and enter opens it. SendBarNote- one muted line under the action: why it works this way, or what to check first.