button
UI primitives The shapes a component cannot be, because they wrap a body only the caller knows: cards, data grids, menus and the shells' own chrome.
Buttons come in four variants and three sizes, and a link can look like one. For the spinner a form shows while it submits, see form-foot.
Each example is live, but its links go nowhere. HTML shows the markup to copy.
<p >
<button rst-btn type ="button" >Cancel</button > <button rst-btn ="primary" type ="button" >Save</button > <button rst-btn ="ghost" type ="button" >Preview</button > <button rst-btn ="danger" type ="button" >Delete</button >
</p >
<p >
<button rst-btn ="primary sm" type ="button" >Small</button > <button rst-btn ="primary" type ="button" >Default</button > <button rst-btn ="primary lg" type ="button" >Large</button > <a rst-btn href ="/orders" >View orders</a >
</p >
<p >
<button rst-btn ="primary block" type ="button" >Continue</button >
</p >
<p >
<button rst-btn type ="button" disabled >Archived</button >
</p >
In an app this would reach /orders. Here its links and forms go nowhere.