qslot
v0.0.5
Published
QSlot component like vue slot
Downloads
12
Readme
QSlot component
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>