0Views
0Copies
Variants

API Reference
Props for <CharmKeychain />
| Prop | Type | Default | Description |
|---|---|---|---|
| metalHighlight | string | "#f4f6fa" | The lit edge of the chains, the ring and the stud. |
| metalTone | string | "#a9b0bd" | The body of the metal. |
| metalSheen | string | "#e6e9ef" | The second glint along the metal. |
| metalShade | string | "#7d8594" | The shaded edge of the metal, and the stud's dark floor. |
| edgeColor | string | "rgba(255, 255, 255, 0.45)" | The clear rim inside a tile's edge. |
| shadowColor | string | "rgba(15, 20, 40, 0.4)" | The soft shadow under the charms. |
| Prop | Type | Default | Description |
|---|---|---|---|
| charms | Array<{ kind, name, icon, image, color, textColor, size, imageSize, chain }> | [{"kind":"tile","name":"Cinema 4D","icon":"cinema4d","image":"","color":"#2f5bea","textColor":"#ffffff","size":54,"imageSize":44,"chain":7},{"kind":"picture","name":"Kabir","icon":"none","image":"/motionuikit/images/onionskin-head.webp","color":"#2f5bea","textColor":"#ffffff","size":92,"imageSize":44,"chain":9},{"kind":"tile","name":"Blender","icon":"blender","image":"","color":"#f2711c","textColor":"#ffffff","size":54,"imageSize":44,"chain":7}] | What hangs from the ring, left to right. |
| font | FontValue | {"fontFamily":"Red Hat Mono","fontWeight":400,"fontSize":6.5,"letterSpacing":"0.06em"} | The names on the tiles, sized for a 54px tile and growing with it. The component doesn't load the font: add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| scale | number | 1 | Size of the whole keychain. |
| gravity | number | 2200 | Higher makes the charms feel heavier. |
| swing | number | 0.986 | How much speed a swing keeps each frame: closer to 1 swings longer. |
| breeze | number | 12 | How far a soft, drifting breeze leans the charms; 0 keeps them still. |
| breezeSpeed | number | 1.6 | How fast the breeze drifts. |
| spacing | number | 38 | How far apart the charms keep, as a share of their widths; under 50 they overlap a little. |
| chainLength | number | 12 | Length of each loop in the chain. |
| chainWidth | number | 7.2 | Width of the chain seen face on. |
| chainThickness | number | 2 | Thickness of the chain's wire. |
| ringSize | number | 21.4 | Diameter of the ring; 0 hides it. |
| ringThickness | number | 3.1 | Thickness of the ring. |
| studSize | number | 18 | Diameter of the chrome stud the ring hangs from; 0 hides it. |
| tileRadius | number | 16 | Corner radius on a 54px tile; it grows with the tile. 27 makes a circle. |
| tileDepth | number | 2 | Thickness of a tile's side. |
| logoSize | number | 24 | Size of a tile's built-in logo, on a 54px tile. |
| holeSize | number | 9 | Diameter of the hole at the top of a tile, on a 54px tile; 0 hides it. |
| gloss | number | 70 | Strength of the reflection across a tile. |
| Prop | Type | Default | Description |
|---|---|---|---|
| grabbable | boolean | true | Lets charms be grabbed, swung and thrown. |
S
Motion score
Compositor-only
- Category
- Interactive Elements
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Charm Keychain
A keyring of charms on metal chains: glossy acrylic tiles either side of a cut-out head, hanging from a chrome stud. They drop in, fan out where they press against each other and swing to rest, and any charm can be grabbed and thrown. The charms, chains, metal, tiles and physics can all be set.