Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProUpload a site icon, check that it is square and large enough, and preview it at the sizes browsers use (16, 32 and 180 pixels) on light and dark backgrounds, with exact messages when it fails. Use this when an icon must work at tiny sizes.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
People upload a favicon, app icon or logo mark that is displayed very small.
Do not use it when: For photos or banners, use the general image upload with a crop.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
min | number | 512 | Smallest side in pixels. |
measure | (file) => Promise<{ width, height }> | decode with Image | Replace for SVG or ICO files that cannot be decoded. |
onAccepted | (file) => void | - | The icon that passed. |
checkFavicon(size, bytes, min?, maxBytes?) is exported.
The pattern ships with a Testing Library test (favicon-upload-validate.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.