@jswork/next-rc-components

1.0.7 • Public • Published

next-rc-components

Global react components for next.

version license size download

installation

yarn add @jswork/next-rc-components

usage

// src/bootstrap.ts
import '@jswork/next-rc-components';

// src/pages/index.tsx
<nx.$rc.ife only value={ife} as="div" asProps={{ className: 'abc' }}>
  <div className="debug-red p-5.5 text-center">
    <h4>Debug info for $rc.ife</h4>
    <a href="https://vitejs.dev" target="_blank">
      <img src={reactLogo} className="logo" alt="Vite logo" />
    </a>
  </div>
</nx.$rc.ife>

<nx.$rc.list
  items={['a', 'b', 'c']}
  as="ul"
  template={({ item }) => {
    return <li key={item}>{item}</li>;
  }}
/>

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-rc-components

Homepage

js.work

Weekly Downloads

221

Version

1.0.7

License

MIT

Unpacked Size

6.65 kB

Total Files

6

Last publish

Collaborators

  • afeiship