stika-ui 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sahil
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,75 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # stika
2
+
3
+ Die-cut stickers for React. A starter set you import by name, plus community stickers you load by id.
4
+
5
+ ```bash
6
+ npm i stika-ui
7
+ ```
8
+
9
+ ## Use a sticker
10
+
11
+ ```tsx
12
+ import { PopCat, LaptopBuddy, ChefBuddy } from "stika";
13
+
14
+ export default function App() {
15
+ return (
16
+ <div>
17
+ <PopCat size={96} peel />
18
+ <LaptopBuddy size={96} />
19
+ <ChefBuddy size={96} />
20
+ </div>
21
+ );
22
+ }
23
+ ```
24
+
25
+ The starter set: `StarSticker`, `HeartSticker`, `SmileSticker`, `CatSticker`, `RocketSticker`,
26
+ `CoffeeSticker`, `SunSticker`, `MoonSticker`, `BoltSticker`, `CloudSticker`, `FlowerSticker`,
27
+ `ArrowSticker`.
28
+
29
+ Import only what you use. Each sticker is tree-shakeable: importing one adds roughly 4 KB
30
+ (minified, React excluded) to your bundle.
31
+
32
+ ## Use a community sticker
33
+
34
+ Anyone can draw a sticker on the Stika site and publish it. Each publish gets an id like
35
+ `handle/name@version`. Pin the version so it never changes under you:
36
+
37
+ ```tsx
38
+ import { CommunitySticker } from "stika";
39
+
40
+ <CommunitySticker id="david/cat@2" size={140} peel />
41
+ ```
42
+
43
+ It loads on the client, renders nothing while loading, and renders nothing if the sticker was
44
+ removed.
45
+
46
+ ## Props
47
+
48
+ | Prop | Type | Default | |
49
+ | --- | --- | --- | --- |
50
+ | `size` | `number \| string` | `96` | Rendered width. Height follows the sticker's shape. |
51
+ | `peel` | `boolean` | `false` | Tilts toward the cursor on hover (mouse only, respects reduced motion). |
52
+ | `alt` | `string` | the sticker's name | Accessible description. |
53
+ | `outline` | `number` | `6` | Die-cut border thickness, in art units (scales with `size`). |
54
+ | `outlineShape` | `"square" \| "round"` | `"round"` | |
55
+ | `className` | `string` | | |
56
+ | `style` | `CSSProperties` | | Setting `transform` here turns the peel tilt off. To rotate or position a sticker, wrap it in an element and style that. |
57
+
58
+ ## Give any SVG the sticker look
59
+
60
+ ```tsx
61
+ import { Sticker } from "stika";
62
+
63
+ <Sticker alt="My blob" width={100} height={100} size={120} peel>
64
+ <circle cx={50} cy={50} r={40} fill="hotpink" />
65
+ </Sticker>
66
+ ```
67
+
68
+ ## Next.js
69
+
70
+ Works in the App Router. The components are client components, so you can import them from
71
+ server or client files.
72
+
73
+ ## License
74
+
75
+ MIT