shell-topbar
Primitivas de interface As formas que um componente não pode ser, porque envolvem um corpo que só quem chama conhece: cartões, grelhas de dados, menus e a moldura própria dos invólucros.
A estrutura própria do invólucro com barra superior, como marcação. A página inteira a que pertence é layout-topbar, em Invólucros.
Cada exemplo funciona de verdade, mas as suas ligações não levam a lado nenhum. HTML mostra a marcação para copiar.
<div rst-shell-topbar ="page" >
<a rst-skip href ="#main" >Ir para o conteúdo</a >
<header rst-shell-bar >
<a rst-shell-up href ="/menu#nav-home" rel ="up" aria-label ="Voltar ao Menu" ><svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m15 18-6-6 6-6" /></svg >Menu</a >
<h1 rst-shell-title >
<span ><a rst-shell-brand href ="/" >Notes</a ></span ><span >Início</span >
</h1 >
<a rst-shell-brand href ="/" >Notes</a >
<nav rst-shell-nav >
<a id ="nav-home" href ="/" aria-current ="page" >Início</a >
<a id ="nav-archive" href ="/archive" >Arquivo</a >
</nav >
<details rst-dropdown rst-shell-account name ="rst-shell-menu" >
<summary >
<span rst-shell-avatar >
<span rst-person-av aria-hidden ="true" >A</span >
<span rst-person-name >Ada Lovelace</span >
</span >
<span rst-shell-account-label >Conta</span >
<span rst-caret aria-hidden ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m6 9 6 6 6-6" /></svg >
</span >
</summary >
<div rst-dropdown-menu >
<div rst-shell-who >
<span rst-person-av aria-hidden ="true" >A</span >
<span rst-person-name >Ada Lovelace</span >
<span rst-person-email >ada@example.com</span >
</div >
<div rst-menu-row >
<span rst-menu-row-label >Aspeto</span >
<div rst-scheme ="icons" role ="group" aria-label ="Aspeto" >
<form method ="post" action ="/_theme" >
<input type ="hidden" name ="scheme" value ="light" >
<input type ="hidden" name ="return" value ="/" >
<button type ="submit" aria-label ="Claro" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="4" /><path d ="M12 2v2" /><path d ="M12 20v2" /><path d ="m4.93 4.93 1.41 1.41" /><path d ="m17.66 17.66 1.41 1.41" /><path d ="M2 12h2" /><path d ="M20 12h2" /><path d ="m6.34 17.66-1.41 1.41" /><path d ="m19.07 4.93-1.41 1.41" /></svg >
</button >
</form >
<form method ="post" action ="/_theme" >
<input type ="hidden" name ="scheme" value ="dark" >
<input type ="hidden" name ="return" value ="/" >
<button type ="submit" aria-label ="Escuro" aria-current ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" /></svg >
</button >
</form >
<form method ="post" action ="/_theme" >
<input type ="hidden" name ="scheme" value ="system" >
<input type ="hidden" name ="return" value ="/" >
<button type ="submit" aria-label ="Sistema" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><rect width ="20" height ="14" x ="2" y ="3" rx ="2" /><line x1 ="8" x2 ="16" y1 ="21" y2 ="21" /><line x1 ="12" x2 ="12" y1 ="17" y2 ="21" /></svg >
</button >
</form >
</div >
</div >
<div rst-menu-row >
<span rst-menu-row-label >Idioma</span ><button type ="button" popovertarget ="rst-language" >
<span lang ="en" >English</span ><span rst-caret aria-hidden ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m6 9 6 6 6-6" /></svg >
</span >
</button >
<details rst-dropdown name ="rst-menus" >
<summary >
<span lang ="en" >English</span >
<span rst-caret aria-hidden ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m6 9 6 6 6-6" /></svg >
</span >
</summary >
</details >
<div rst-locale popover id ="rst-language" >
<div rst-menu-row >
<h2 >Idioma</h2 >
<button type ="button" popovertarget ="rst-language" popovertargetaction ="hide" >Fechar</button >
</div >
<a href ="/en/" lang ="en" dir ="ltr" aria-current ="true" >English</a ><a href ="/ga/" lang ="ga" dir ="ltr" >Gaeilge</a ><a href ="/zh-Hans/" lang ="zh-Hans" dir ="ltr" >简体中文</a ><a href ="/es/" lang ="es" dir ="ltr" >Español</a ><a href ="/hi/" lang ="hi" dir ="ltr" >हिन्दी</a ><a href ="/pt-PT/" lang ="pt-PT" dir ="ltr" >Português</a ><a href ="/bn/" lang ="bn" dir ="ltr" >বাংলা</a ><a href ="/ru/" lang ="ru" dir ="ltr" >Русский</a ><a href ="/ja/" lang ="ja" dir ="ltr" >日本語</a ><a href ="/yue/" lang ="yue" dir ="ltr" >廣東話</a ><a href ="/vi/" lang ="vi" dir ="ltr" >Tiếng Việt</a ><a href ="/ar/" lang ="ar" dir ="rtl" >العربية</a >
</div >
</div >
<a href ="/settings" >Definições</a >
</div >
</details >
</header >
<main rst-page id ="main" >Conteúdo.</main >
<footer rst-shell-foot >Feito com Fiesta</footer >
</div >
Numa aplicação, isto chegaria a /, /_theme, /ar/, /archive, /bn/, /en/, /es/, /ga/, /hi/, /ja/, /menu#nav-home, /pt-PT/, /ru/, /settings, /vi/, /yue/, /zh-Hans/. Aqui as suas ligações e formulários não levam a lado nenhum.