Icon 图标
语义化的图标库。
使用指南
- 部分图标分为实心和描线两个版本, 使用
-o
(字母)来区分, e.g.shop
(实心)和shop-o
(描线). - 命名规则:
icon名字-[variant(变体)]-[描线与否(o)]
.
代码演示
:::demo React组件方式使用
; ReactDOM;
:::
:::demo 只使用CSS
ReactDOM;
:::
:::demo 所有图标
; state = search: '' ; { this; }; { const search = thisstate; return <div className="zi-grid"> search && <style>`.zi-grid-item:not([data-index*=""]) { display: none; }`</style> <div className="zi-search-input"> <input placeholder="Search..." value=search onChange=thisonChange /> </div> <div className="zi-grid-item" data-index="summary-o0xe800summaryoutline"> <Icon type="summary-o" /> <span className="zi-grid-item-name">summary-</span> </div> <div className="zi-grid-item" data-index="summary0xe801summaryfilled"> <Icon type="summary" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="shop-o0xe802shopoutline"> <Icon type="shop-o" /> <span className="zi-grid-item-name">shop-</span> </div> <div className="zi-grid-item" data-index="shop0xe803shopfilled"> <Icon type="shop" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="goods-o0xe804goodsoutline"> <Icon type="goods-o" /> <span className="zi-grid-item-name">goods-</span> </div> <div className="zi-grid-item" data-index="goods0xe805goodsfilled"> <Icon type="goods" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="order-o0xe806orderoutline"> <Icon type="order-o" /> <span className="zi-grid-item-name">order-</span> </div> <div className="zi-grid-item" data-index="order0xe807orderfilled"> <Icon type="order" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="customer-o0xe808customeroutline"> <Icon type="customer-o" /> <span className="zi-grid-item-name">customer-</span> </div> <div className="zi-grid-item" data-index="customer0xe809customerfilled"> <Icon type="customer" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="chart-o0xe80adatachartoutline"> <Icon type="chart-o" /> <span className="zi-grid-item-name">chart-</span> </div> <div className="zi-grid-item" data-index="chart0xe80bdatachartfilled"> <Icon type="chart" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="capital-o0xe80ccapitaloutline"> <Icon type="capital-o" /> <span className="zi-grid-item-name">capital-</span> </div> <div className="zi-grid-item" data-index="capital0xe80dcapitalfilled"> <Icon type="capital" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="casher0xe80ecasher"> <Icon type="casher" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="marketing0xe80fmarketing"> <Icon type="marketing" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="settings-o0xe810settingsoutline"> <Icon type="settings-o" /> <span className="zi-grid-item-name">settings-</span> </div> <div className="zi-grid-item" data-index="settings0xe811settingsfilled"> <Icon type="settings" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="youzan-o0xe812youzanlogooutline"> <Icon type="youzan-o" /> <span className="zi-grid-item-name">youzan-</span> </div> <div className="zi-grid-item" data-index="youzan0xe813youzanlogofilled"> <Icon type="youzan" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="close0xe814closenaked"> <Icon type="close" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="close-circle-o0xe815closecircleoutline"> <Icon type="close-circle-o" /> <span className="zi-grid-item-name">close-circle-</span> </div> <div className="zi-grid-item" data-index="close-circle0xe816closecirclefilled"> <Icon type="close-circle" /> <span className="zi-grid-item-name">close-</span> </div> <div className="zi-grid-item" data-index="message0xe817messagefilled"> <Icon type="message" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="message-o0xe818messageoutline"> <Icon type="message-o" /> <span className="zi-grid-item-name">message-</span> </div> <div className="zi-grid-item" data-index="bell0xe819bellfilled"> <Icon type="bell" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="bell-o0xe81abelloutline"> <Icon type="bell-o" /> <span className="zi-grid-item-name">bell-</span> </div> <div className="zi-grid-item" data-index="calendar0xe81bcalendarfilled"> <Icon type="calendar" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="calendar-o0xe81ccalendaroutline"> <Icon type="calendar-o" /> <span className="zi-grid-item-name">calendar-</span> </div> <div className="zi-grid-item" data-index="search0xe81dsearch"> <Icon type="search" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="customer-service0xe81ecustomer-service"> <Icon type="customer-service" /> <span className="zi-grid-item-name">customer-</span> </div> <div className="zi-grid-item" data-index="feedback0xe81ffeedback"> <Icon type="feedback" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="error-circle-o0xe820errorcircleoutline"> <Icon type="error-circle-o" /> <span className="zi-grid-item-name">error-circle-</span> </div> <div className="zi-grid-item" data-index="error-circle0xe821errorcirclefilled"> <Icon type="error-circle" /> <span className="zi-grid-item-name">error-</span> </div> <div className="zi-grid-item" data-index="check-circle-o0xe822checkcircleoutline"> <Icon type="check-circle-o" /> <span className="zi-grid-item-name">check-circle-</span> </div> <div className="zi-grid-item" data-index="check-circle0xe823checkcirclefilled"> <Icon type="check-circle" /> <span className="zi-grid-item-name">check-</span> </div> <div className="zi-grid-item" data-index="help-circle-o0xe824helpcircleoutline"> <Icon type="help-circle-o" /> <span className="zi-grid-item-name">help-circle-</span> </div> <div className="zi-grid-item" data-index="help-circle0xe825helpcirclefilled"> <Icon type="help-circle" /> <span className="zi-grid-item-name">help-</span> </div> <div className="zi-grid-item" data-index="clock-o0xe826clockoutline"> <Icon type="clock-o" /> <span className="zi-grid-item-name">clock-</span> </div> <div className="zi-grid-item" data-index="clock0xe827clockfilled"> <Icon type="clock" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="countdown0xe828countdown"> <Icon type="countdown" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="download0xe829download"> <Icon type="download" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="share0xe82ashare"> <Icon type="share" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="shop-decorate0xe82bshopdecorate"> <Icon type="shop-decorate" /> <span className="zi-grid-item-name">shop-</span> </div> <div className="zi-grid-item" data-index="shop-template0xe82cshoptemplate"> <Icon type="shop-template" /> <span className="zi-grid-item-name">shop-</span> </div> <div className="zi-grid-item" data-index="gift0xe82dgift"> <Icon type="gift" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="caret-up0xe82ecaretup"> <Icon type="caret-up" /> <span className="zi-grid-item-name">caret-</span> </div> <div className="zi-grid-item" data-index="caret-down0xe82fcaretdown"> <Icon type="caret-down" /> <span className="zi-grid-item-name">caret-</span> </div> <div className="zi-grid-item" data-index="arrow-up0xe830arrowup"> <Icon type="arrow-up" /> <span className="zi-grid-item-name">arrow-</span> </div> <div className="zi-grid-item" data-index="arrow-down0xe831arrowdown"> <Icon type="arrow-down" /> <span className="zi-grid-item-name">arrow-</span> </div> <div className="zi-grid-item" data-index="right0xe832right"> <Icon type="right" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="plus0xe833addplus"> <Icon type="plus" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="star-o0xe834staroutline"> <Icon type="star-o" /> <span className="zi-grid-item-name">star-</span> </div> <div className="zi-grid-item" data-index="star0xe835starfilled"> <Icon type="star" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="check0xe836check"> <Icon type="check" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="info-circle-o0xe837infocircleoutline"> <Icon type="info-circle-o" /> <span className="zi-grid-item-name">info-circle-</span> </div> <div className="zi-grid-item" data-index="info-circle0xe838infocirclefilled"> <Icon type="info-circle" /> <span className="zi-grid-item-name">info-</span> </div> <div className="zi-grid-item" data-index="warning-o0xe839warningtriangleoutline"> <Icon type="warning-o" /> <span className="zi-grid-item-name">warning-</span> </div> <div className="zi-grid-item" data-index="warning0xe83awarningtrianglefilled"> <Icon type="warning" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="lock0xe83blocklocked"> <Icon type="lock" /> <span className="zi-grid-item-name"></span> </div> <div className="zi-grid-item" data-index="unlock0xe83cunlockunlocked"> <Icon type="unlock" /> <span className="zi-grid-item-name"></span> </div> </div> ; } ReactDOM;
:::
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
type | 图标类型 | string | '' |
className | 自定义额外类名 | string | '' |