v0.1.0
Tiny Tells
Give your app’s status a face. Six tiny characters drop in anywhere a spinner would go.
- 6 tells
- 5 states
- 0 dependencies
- 13.9 KB
The cast
Make It Yours
Tells take five color tokens, one per state. Set them on :root or any container, and any you
leave out keep the built-in color. Each needs 3:1 contrast against the surface behind it.
Ratios use the library’s default palette.
Add Some Play
The play bundle adds two extras. Tells glance at your pointer as it passes, and five quick taps on one make it dance. This page runs it, so try it here.
import 'tiny-tells/play'; // instead of 'tiny-tells'
In the Wild
Each tell, dropped into the kind of interface it’s best for. Pick a state and every example follows it.
Put One in Your App
Install once, then drop a tell next to any status text. Colors are optional.
-
Install
npm i tiny-tellsSelf-hosting? See the docs.
-
Drop One In
Syncing 3 files… Generating your summary… Uploading 12 photos… Checking for updates… Saved just now. Payment received. All 12 photos are backed up. Your summary is ready. Couldn’t connect. Check your Wi-Fi. Card declined. Try another one? Upload failed. Try again? Sync stopped. Your storage is full. Approve the deploy to continue. Sign in again to keep syncing. One file needs your review. Confirm your email to finish. Up to date. Nothing in the queue. Ready when you are. Last synced 2 minutes ago. -
Color, If You Want
Tells ship with colors that pass in light and dark. To use your own, set the five tokens from Make It Yours on
:root. To draw in the text color instead, addcolor="current".Pick Your Colors