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

shiro-rc

v0.0.10

Published

TODO

Downloads

253

Readme

React Component TailwindCSS + Next.js Template

这是一个用于快速搭建 React 组件的模板,使用了 TailwindCSS 描述组件 和 Next.js 搭建示例站点。

快速开始

你可以直接 Fork 或者 使用此模板。

然后,你需要更换 包的名称,这个取决你的组件是什么。

你需要在项目中全局的替换 rc-template 到 你的更换的包名。

demo 目录中,这是一个示例站点,你可以在这个站点中测试你的组件并且编写组件的文档。

使用 TailwindCSS

组件使用 TailwindCSS 去描述,那么在使用你开发的组件时会存在两种情况。

第一种,项目使用了 TailwindCSS,那么,你需要告诉使用方,在 tailwind.config.js 中添加组件库的文件目录。

// tailwind.config.js

module.exports = {
  content: [
    'app/**/*.{ts,tsx}',
    'components/**/*.{ts,tsx}',
    './node_modules/<YOUR_LIB_NAME>/dist/*.js', // 添加这里
  ],
}

第二种,项目没有使用 TailwindCSS,那么你需要告诉使用方,需要在项目中引入打包后的 css 文件。

import '<YOUR_LIB_NAME>/dist/index.css'

或者

@import '<YOUR_LIB_NAME>/dist/index.css';

License

2024 © Innei, Released under the MIT License.

Personal Website · GitHub @Innei