0.0.5 • Published 5 years ago

qslot v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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>
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago