
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@wethegit/preact-stickerbook
Advanced tools
Easily create collage apps that are accessible by default.
Easily create collage apps that are accessible by default.
To run and test the library localy, simply:
git clone git@github.com:wethegit/preact-stickerbook.git
npm i
npm run dev
This is the most simplistic way of using it, it's an artboard with the stickers.
Most likely you will want more control, you will want to generate downloads, add and remove stickers, and more. Check out the full demo on Codepen and also the complete implementation in the Playground.
import { h, render } from "preact"
import { Stickerbook, Sticker } from "@wethegit/preact-stickerbook"
const App = () => {
const stickers = [
{
id: "my-id-1",
image: "https://media.giphy.com/media/10mgrhuEWNasNO/giphy.gif",
order: 0,
},
]
return (
<Stickerbook outputWidth={500} outputHeight={500}>
{stickers.map(({ id, ...sticker }) => (
<Sticker key={id} id={id} {...sticker} />
))}
</Stickerbook>
)
}
render(<App />, document.body)
Your main artboard. Responsible for containing and providing the Stickers
with a context and all the required references so they can properly scale and translate.
Apart from the Stickers
, the Stickerbook
can also have background
s, foreground
s and a frame
.
Type: StickerbookProps
All of the elements that form the collage.
Type: StickerProps.
A hook that provides the Stickerbook
context and all the handlers to manipulate the stickers.
Type: UseStickerbookProps
Type: UseStickerbookReturn
Returns a representation of the stickerbook in the chosen format
.
Type: ExportStickerbookOptions
Returns a reordered copy of the provided stickers
array.
Type: ReorderStickerOptions
Returns a copy of the provided stickers
array with the new sticker containing the required required id and id fields.
Type: AddStickerOptions
Returns a copy of the provided stickers
array without the selected sticker.
Type: DeleteStickerOptions
Returns a copy of the provided stickers
array with the updated ("patched") sticker in place.
Type: PatchStickerOptions
FAQs
Easily create collage apps that are accessible by default.
We found that @wethegit/preact-stickerbook demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.