npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fish-bubble/icons

v1.0.4

Published

Vue components of fish-bubble icons collection.

Downloads

4

Readme

安装

 # NPM
$ npm install @fish-bubble/icons
# Yarn
$ yarn add @fish-bubble/icons
# pnpm
$ pnpm install @fish-bubble/icons

使用方法


 <script setup lang="ts">
   import Icon, { Close as CloseIcon, createFromIconfont } from "@fish-bubble/icons";
   // 如果你是使用 iconfont.cn
   /**
    * 对于使用 iconfont.cn 的用户,通过设置 createFromIconfont 方法参数对象中的 scriptUrl 字段,
    *  即可轻松地使用已有项目中的图标
    */
   const IconFont = createFromIconfont({
    scriptUrl: '//at.alicdn.com/t/c/font_4341410_dda0iswxhbi.js',
  });
 </script>

 <template>
   // 如果你是使用 iconfont.cn
   // 使用createFromIconfont时: SVG图标自带颜色:某些SVG图标可能已经自带颜色,这会导致您在CSS中设置的样式无效
   <IconFont type="yp-fangda" size="22px" color="red" />

   // @fish-bubble/icons自带的图标
   <CloseIcon size="20px" color="red" class="custom-class" />
 </template>

 // 自定义图标
 <p>利用 Icon 组件封装一个可复用的自定义图标。可以通过插槽传入一个 svg 组件来渲染最终的图标,以满足特定的需求。</p>
 <template>
   // size为number时不需要接上px
   <Icon :size="22" color="red">
      <svg width="1em" height="1em" fill="currentColor" viewBox="0 0 1024 1024">
        <path
          d="M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9z"
        />
      </svg>
   </Icon>
 </template>