促銷活動
查看我們最新的促銷商品!
<div class="ts-segment is-dense" style="width: 250px;">
<div class="ts-menu is-start-icon is-separated">
<a class="item">
<span class="ts-icon is-house-icon"></span> 首頁
</a>
<a class="item is-active">
<span class="ts-icon is-gauge-high-icon"></span> 儀表板
</a>
<a class="item">
<span class="ts-icon is-table-icon"></span> 訂單
</a>
<div class="ts-divider"></div>
<a class="item">
<span class="ts-icon is-gears-icon"></span> 設定
</a>
</div>
</div>
選單是一個提供垂直可選項目清單的元件,如果希望建立一個左右水平的導覽選單則可以考慮使用分頁籤。
表示目前已經被啟用或是正在呈現的相關功能。
<div class="ts-menu">
<a class="item">個人資料</a>
<a class="item is-active">位置分享</a>
<a class="item">設定</a>
</div>
使項目呈現無法互動、點擊的模樣。
<div class="ts-menu">
<a class="item">無線通訊</a>
<a class="item is-disabled">地圖紀錄</a>
<a class="item">導航設定</a>
</div>
可用於下拉式選單用來表示某個項目被選中,可能是某個欄位目前的內容值。
<div class="ts-menu">
<a class="item">蘋果</a>
<a class="item is-selected">鳳梨</a>
<a class="item">西瓜</a>
</div>
項目前面可以放置大頭貼作為輔助人名使用。
<div class="ts-box is-collapsed">
<div class="ts-menu is-collapsed">
<a class="item">
<span class="ts-avatar is-circular">
<img src="user.png">
</span>
Yami Odymel
</a>
<a class="item">
<span class="ts-avatar is-circular">
<img src="user.png">
</span>
Xiaoan
</a>
<a class="item">
<span class="ts-avatar is-circular">
<img src="user.png">
</span>
Kitsune
</a>
</div>
</div>
在項目裡擺放計數徽章會自動移至最尾端。
<div class="ts-box is-collapsed">
<div class="ts-menu is-collapsed is-start-icon">
<a class="item is-active">
<span class="ts-icon is-inbox-icon"></span>
收件匣
<div class="ts-badge is-inverted is-small is-dense">3</div>
</a>
<a class="item">
<span class="ts-icon is-bookmark-icon"></span>
重要郵件
</a>
<a class="item">
<span class="ts-icon is-circle-exclamation-icon"></span>
垃圾郵件
<div class="ts-badge is-small is-dense">64</div>
</a>
</div>
</div>
選單項目的起始或結束位置可以帶有圖示輔助。
<div class="ts-box">
<div class="ts-menu is-start-icon">
<a class="item">
<span class="ts-icon is-magnifying-glass-icon"></span> 搜尋
</a>
<a class="item">
<span class="ts-icon is-vials-icon"></span> 實驗區
</a>
<a class="item">
<span class="ts-icon is-atom-icon"></span> 原子測試
</a>
</div>
</div>
<div class="ts-box">
<div class="ts-menu is-end-icon">
<a class="item">
我的最愛 <span class="ts-icon is-heart-icon"></span>
</a>
<a class="item">
已讚好內容 <span class="ts-icon is-thumbs-up-icon"></span>
</a>
<a class="item">
封存項目 <span class="ts-icon is-box-archive-icon"></span>
</a>
</div>
</div>
加大項目的水平內距,適合用於排版或給予視覺上更大的空間或是與內容區塊一同排列時使用。
<div class="ts-box">
<div class="ts-menu">
<a class="item">
預設
</a>
<a class="item">
預設
</a>
</div>
</div>
<div class="ts-box">
<div class="ts-menu is-horizontally-padded">
<a class="item">
增加內距
</a>
<a class="item">
增加內距
</a>
</div>
</div>
<div class="ts-box">
<div class="ts-menu is-horizontally-very-padded">
<a class="item">
非常增加內距
</a>
<a class="item">
非常增加內距
</a>
</div>
</div>
更改選單項目的大小。
<div class="ts-box">
<div class="ts-menu is-large is-start-icon">
<a class="item">
<span class="ts-icon is-star-icon"></span> 常用聯絡人
</a>
<a class="item">
<span class="ts-icon is-users-icon"></span> 聯絡人
</a>
</div>
</div>
<div class="ts-box">
<div class="ts-menu is-start-icon">
<a class="item">
<span class="ts-icon is-star-icon"></span> 常用聯絡人
</a>
<a class="item">
<span class="ts-icon is-users-icon"></span> 聯絡人
</a>
</div>
</div>
<div class="ts-box">
<div class="ts-menu is-small is-start-icon">
<a class="item">
<span class="ts-icon is-star-icon"></span> 常用聯絡人
</a>
<a class="item">
<span class="ts-icon is-users-icon"></span> 聯絡人
</a>
</div>
</div>
選單裡項目的間距可以更密或是更寬鬆。
<div class="ts-menu is-relaxed is-start-icon is-separated">
<a class="item">
<span class="ts-icon is-house-icon"></span> 首頁
</a>
<a class="item is-active">
<span class="ts-icon is-gauge-high-icon"></span> 儀表板
</a>
<a class="item">
<span class="ts-icon is-table-icon"></span> 訂單
</a>
</div>
<div class="ts-menu is-start-icon is-separated">
<a class="item">
<span class="ts-icon is-house-icon"></span> 首頁
</a>
<a class="item is-active">
<span class="ts-icon is-gauge-high-icon"></span> 儀表板
</a>
<a class="item">
<span class="ts-icon is-table-icon"></span> 訂單
</a>
</div>
<div class="ts-menu is-dense is-start-icon is-separated">
<a class="item">
<span class="ts-icon is-house-icon"></span> 首頁
</a>
<a class="item is-active">
<span class="ts-icon is-gauge-high-icon"></span> 儀表板
</a>
<a class="item">
<span class="ts-icon is-table-icon"></span> 訂單
</a>
</div>
<div class="ts-box" style="width: 250px;">
<div class="ts-content">
<div class="ts-input">
<input type="text" placeholder="搜尋…">
</div>
</div>
<div class="ts-divider"></div>
<div class="ts-menu is-start-icon">
<a class="item">
<span class="ts-icon is-house-icon"></span> 首頁
</a>
<a class="item is-active">
<span class="ts-icon is-gauge-high-icon"></span> 儀表板
</a>
<a class="item">
<span class="ts-icon is-table-icon"></span> 訂單
</a>
<div class="ts-divider"></div>
<a class="item">
<span class="ts-icon is-gears-icon"></span> 設定
</a>
</div>
</div>
<div class="ts-box is-collapsed">
<div class="ts-menu is-collapsed">
<a class="item">
<div class="ts-iconset is-outlined">
<span class="ts-icon is-bullhorn-icon"></span>
<div class="content">
<div class="title">促銷活動</div>
<div class="text">查看我們最新的促銷商品!</div>
</div>
</div>
</a>
<div class="ts-divider"></div>
<a class="item">
<div class="ts-iconset is-outlined">
<span class="ts-icon is-ticket-simple-icon"></span>
<div class="content">
<div class="title">優惠券</div>
<div class="text">看看我們所販售的優惠券。</div>
</div>
</div>
</a>
<div class="ts-divider"></div>
<a class="item">
<div class="ts-iconset is-outlined">
<span class="ts-icon is-truck-icon"></span>
<div class="content">
<div class="title">退貨</div>
<div class="text">
不滿意商品?查看我們的無條件退貨機制。
</div>
</div>
</div>
</a>
</div>
</div>