qslot

0.0.5 • Public • Published

QSlot component

Build Status

Examples

your component

import { QSlot, byProps } from 'QSlot'
 
const Test = props => (
  <div>
    hello
    <QSlot
      select={byProps("props.slot")}
      to={Header}
      content={props.children}
    />
  </div>
);

call your component

<Test>
  <div slot />
  <div slot />
</Test>

result

<div>
  hello
  <div>
    <header>
      Test
    </header>
    <header>
      Test
    </header>
  </div>
</div>

Package Sidebar

Install

npm i qslot

Weekly Downloads

4

Version

0.0.5

License

MIT

Unpacked Size

5.51 MB

Total Files

43

Last publish

Collaborators

  • eddort