Windows — Fluent JS behaviour

Fluent buttons

Win11’s button family: standard with its 4px-radius stroke, the blue accent, borderless subtle, the two-state toggle, the split with its divided chevron and the hyperlink; all with a 4% state layer.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

One family, six temperaments

Standard, accent, subtle, toggle, split and hyperlink — each wearing a 4% state layer on hover, dimming its text when pressed, and doubling its ring under the keyboard. The toggle really bolds the first line.

Sales report — summer quarter

Regular body text for comparing the type weight once the toggle is on.

Ready — nothing saved yet

Important props

Important props
Prop Type Default What it does
variant string 'standard' standard · accent · subtle · toggle · split · hyperlink.
radius length '4px' The Win11 control radius; deliberately modest.
accent color '#005FB8' Light accent #005FB8, dark #4CC2FF — Windows’ system colour.

Snippet

<button class="flbtn">استاندارد</button>
<button class="flbtn" data-accent>ذخیره</button>
<button class="flbtn" data-subtle>بی‌پس‌زمینه</button>
<button class="flbtn" data-split>ادامه <span>▾</span></button>

<style>
.flbtn { min-inline-size: 80px; block-size: 32px; border-radius: 4px;
         border: 1px solid #0000001f; background: #fdfdfdfd; }
.flbtn:hover { background: #f6f6f6; }
.flbtn:active { background: #f5f5f5; color: #616161; }
.flbtn[data-accent] { background: #005FB8; border-color: #005FB8; color: #fff; }
.flbtn[data-split] span { margin-inline-start: 12px; padding-inline-start: 12px;
                          border-inline-start: 1px solid #00000026; }
</style>