How to spend company money, how to report it, and when it comes back to you.
What you can expense
Travel booked through the company account, client meals up to the daily limit, and software the team lead approved in writing.
Home office equipment is covered once a year, up to the amount listed in your contract.
Receipts
Upload the receipt the day you pay: a photo is enough as long as the total, the date and the vendor are readable.
Lost a receipt? Add a short note to the line instead. Two missing receipts in a quarter send the report to manual review.
Approval
Your team lead approves reports under the monthly threshold. Larger ones also go to finance, which answers within two working days.
Rejected lines come back with a reason, and you can edit and resubmit them from the same report.
Reimbursement
Approved reports are paid with the next payroll. The payslip lists them as a separate line, so they are never taxed as salary.
Questions go to the finance channel.
scroll-progress · , lively
scroll-progress-demo.tsx
When to use
Use it on long reads such as articles, docs, changelogs and legal pages to show how far the reader is. It can double as a table of contents with section ticks and show time left or percent read.
When not to use
For the progress of a task like an upload or a checkout use Progress. For ordered steps use Stepper.
Use it on long reads (articles, docs, changelogs, legal pages) to show how far along the reader is.
It is decorative feedback for something the reader drives: scrolling. For the progress of a task
(an upload, a checkout step) use a progress bar with a label instead.
The bar does not jump with each wheel step: it glides after the scroll position on the
temperament's speed (calm keeps it tight, playful lets it trail a little more) and never
bounces past the real position, because a reading indicator that runs ahead would be wrong. A
soft glowing tip marks where you are; it fades in as you start and out when you reach the end, so
a finished bar is simply full.
Two options turn it from an indicator into a small reading tool:
Section ticks (sections="h2"): every matching heading becomes a small diamond on the bar,
placed where that heading reaches the top of the view. Ticks light up as the tip passes them,
show the heading on hover or focus, and scroll to it when pressed, so the bar doubles as a
compact table of contents.
Readout (readout="time" or "percent"): a quiet pill at the end of the bar with the
reading time left, counted from the words still ahead (wordsPerMinute, 230 by default), or the
percentage read. It says "Done" at the end.
To measure only the article inside a longer page, pass it as target: the bar is empty when the
article's top reaches the top of the view and full when its end reaches the bottom. Change its
look with classes: className="h-1" for a thicker bar, position="bottom" to sit under a header.
The bar uses your theme's primary; pass color="brand" for the MotionKit accent.
Give the headings a scroll-margin-top (scroll-mt-16) as tall as any sticky header: a jump
lands just below it, and the tick sits exactly where the jump lands.
The bar sits on the header's bottom edge and fills only while the essay is read; the intro above
it and the footer below do not count. One tick per rule, and the percentage read in the header.
Before choosing a curve, decide what the movement explains. A list that reorders, a card that opens, a step that completes: each one has a direction and a cause.
The rest follows from there: fewer effects, each one with a reason, and every one of them easy to turn down.
Let the person cause it
Movement that starts on its own competes with reading. Tie it to a scroll, a press or a hover, and it becomes feedback instead of decoration.
The rest follows from there: fewer effects, each one with a reason, and every one of them easy to turn down.
Keep the timing honest
Small things move quickly, large surfaces take a little longer, and nothing makes anyone wait for an animation before they can act again.
The rest follows from there: fewer effects, each one with a reason, and every one of them easy to turn down.
The bar itself is decorative and hidden from assistive tech (aria-hidden): browsers and
screen readers already expose the scroll position, and announcing every percent would be noise.
Without ticks or a readout the whole component is hidden.
Section ticks are real buttons in a nav named "Sections" (sectionsLabel), each labelled
Jump to <heading>. The tick of the section you are in carries aria-current="location".
Pressing one scrolls there and moves focus to the heading (it gets tabindex="-1" if it has
none), so the next Tab and a screen reader continue from the right place.
Each tick has a 24 px hit area and a focus ring; on touch, a tap jumps straight to the section.
The readout is plain text, not a live region: it is there to read, never announced on scroll.
The rest of the bar never takes pointer events, so it cannot cover links in a sticky header.
Colors come from primary (or brand, shipped with the component), a gradient that is solid at
the tip, visible on light and dark backgrounds.
A scroll area you track should be reachable with the keyboard: give it tabIndex={0}, a
role="region" and an aria-label, as the demos do.
Scrolling with the keyboard (arrows, Page Up / Page Down, Space, Home / End) moves the bar like
the wheel does. With sections, Tab reaches each tick and Enter or Space jumps to its section.
With reduced motion (the OS setting, or MotionKitProvider reducedMotion="always") the bar is the
scroll position itself: it follows it exactly, with no glide behind it. Ticks jump without smooth
scrolling and light up with a short fade instead of a pop. Nothing else changes.
Only transform and opacity change: the bar is a full-width strip translated by the progress,
so its rounded tip keeps its shape at every length.
One scroll listener (Motion's useScroll, shared and passive) and one spring that stops once it
is within a fraction of a pixel of the scroll position. The readout text is written straight from
the motion value; React re-renders only when a tick changes state, never on every frame.
Headings and words are measured once after layout and again when the content resizes
(ResizeObserver), not while scrolling.
About 4 kB gzip including the MotionKit motion helpers, on top of Motion.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 6.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, motion.
Dependencies
motion · peer
Triggers
scroll, click
Reduced motion
The bar follows the scroll position exactly, ticks jump without smooth scrolling and light up without a pop.
Keyboard
Tab
Moves through the section ticks
Enter / Space
On a tick: scrolls to that section and focuses its heading
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)