moja kirijadesign

Components

Button

The one thing on a screen that looks pressable, in six variants.

Accepted· apps/web/components/ui/button.tsx

Import from @/components/ui/button.tsx. One component replaced six copies of the same button, and each copy had drifted: a UA font on a marketing CTA, the wrong weight, two different hovers.

Variants

variant="primary" · Accent fill. The one filled action of a step.
variant="secondary" · Hairline, ink text. The quieter half of a pair.
variant="ink" · Ink fill, for a form's submit on paper.
variant="quiet" · No chrome, accent text.
variant="alarm" · One of the four exceptions. Once per screen.
variant="wash" · A section's call to action in three levels; never a step's primary.

States and forms

disabled
compact variant="secondary"
block
href: an anchor that looks the same
IconButton glyph="close" label="Zatvorite"

Usage

  • One filled button per step. A second action is secondary or quiet.
  • A GET that changes state is never a link. Recording, sending, paying and deleting are a form and a <button>.
  • Labels are a verb and a noun in the polite plural: "Sačuvajte kiriju", "Odustanite"; never "Da" or "U redu".
  • The alarm budget is four screens, once each. Nothing in code can enforce it; this is where it is written down.

Size and depth

Accepted 21.11.2026 (D-2026-11-21-15): with a mouse a button is 36px high, with touch 44px (48 for a sheet's primary), chosen by pointer type; radius 8 from the ladder; buttons carry small layered shadows and pressed goes down. The examples above are the component as it ships today (44px, 3px, flat); the change to button.module.css is its own lane.

Props

PropTypeDefaultDescription
childrenReactNode—The label. A verb and a noun: "Sačuvajte kiriju".
variant"primary" | "secondary" | "ink" | "quiet" | "alarm" | "wash""primary"What the button is on the screen. alarm is for the four exceptions only, at most once per screen.
blockbooleanfalseFull width: the phone form of most actions.
compactbooleanfalse44px high, 14px sides, 16px type, for a button in a row of other things.
hrefstring—Renders an <a> that looks the same. Only for going somewhere; anything that records, sends, pays or deletes is a form and a <button>. No disabled on this branch.
type"submit" | "button" | "reset"HTML's (submit)Deliberately no button default: every screen works before JavaScript, so a button in a form submits it.
className / style——Not accepted. Something new is a new variant in button.tsx.