1.2.2 • Published 2 years ago

@strategies/react-pinboard v1.2.2

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
2 years ago

Sasaki's React Pinboard

Pin components inside a fixed component with optional fixed aspect ratio

Install

yarn add @strategies/react-pinboard

Example

import { Pinboard, Pin } from '@strategies/react-pinboard'
<Pinboard aspect={4/3}>
    <img src={baseImage} alt="An unpinned element inside the pinboard" />

    <Pin x={.3} y={.25}>
        <YourComponent />
    </Pin>

    <Pin x={.5} y={1}>
        <YourComponent />
    </Pin>

    <Pin x={.65} y={.1}>
        <YourOtherComponent />
    </Pin>
</Pinboard>
1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago