callout
展示 砌成一個畫面嘅嗰啲細塊講法:狀態、身分、進度、資料表格同圖表,同唯一嗰種提示形狀。
提示嘅唯一一套講法:有顏色嘅條、色調圖示、可有可無嘅粗體標題,同一段正文。
每個例子都真係用得,不過入面啲連結唔會帶你去邊度。 HTML 顯示可以複製嘅標記。
info
<div rst-callout rst-tone ="info" >
<span rst-callout-ic 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" ><circle cx ="12" cy ="12" r ="10" /><path d ="M12 16v-4" /><path d ="M12 8h.01" /></svg >
</span >
<div rst-callout-body >
<p >網站未發佈之前,文章淨係會員先睇到。</p >
</div >
</div >
positive
<div rst-callout rst-tone ="positive" >
<span rst-callout-ic 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" ><circle cx ="12" cy ="12" r ="10" /><path d ="m9 12 2 2 4-4" /></svg >
</span >
<div rst-callout-body >
<strong >付款已經連接好</strong >
<p >而家可以收門票錢喇。</p >
</div >
</div >
warning
<div rst-callout rst-tone ="warning" >
<span rst-callout-ic 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 ="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" /><path d ="M12 9v4" /><path d ="M12 17h.01" /></svg >
</span >
<div rst-callout-body >
<strong >連接付款就可以開始賣</strong >
<p >你嘅活動已經上線,但暫時未收到錢。</p >
</div >
</div >
negative
<div rst-callout rst-tone ="negative" >
<span rst-callout-ic 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" ><circle cx ="12" cy ="12" r ="10" /><path d ="m15 9-6 6" /><path d ="m9 9 6 6" /></svg >
</span >
<div rst-callout-body >
<strong >上一次匯入失敗咗</strong >
<p >乜都冇改到。改好第 91 行再試多次。</p >
</div >
</div >
negative,並且當警報咁報出嚟
role="alert" 會令螢幕閱讀器一出現就讀出嚟。留返畀唔可以等嘅訊息先用。
<div rst-callout rst-tone ="negative" role ="alert" >
<span rst-callout-ic 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" ><circle cx ="12" cy ="12" r ="10" /><path d ="m15 9-6 6" /><path d ="m9 9 6 6" /></svg >
</span >
<div rst-callout-body >
<strong >匯入停咗</strong >
<p >乜都冇改到。改好第 91 行再試多次。</p >
</div >
</div >