Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Company Size Onboarding Block for React

A team-size question as a slider over five labelled stops, a drawing of people that grows with the thumb, one sentence for that size and a list of the three things set up first.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Size the first setup to the team with this team-size question for React with Base UI. It is a step of Staffold, a payroll tool, as a whole screen: the page's rails and one band, a step header (“Step 4 of 6” and a hairline) and a framed panel read from its top. A drawing of people grows as you slide (one figure, then 6, 12, 18 and 24 with a plus); under it a Slider runs over five labelled stops (1–10, 11–50, 51–200, 201–1,000 and 1,000+) and speaks each in words; under that a sentence says what Staffold will do for that size, and a list gives the three things it sets up first, each marked Now or Later. Pressing a label chooses its stop too. Continue is the one Shine Button, with a ghost Skip for now beside it. Nothing is saved.

FAQ

How do I change the sizes?

Edit STOPS. Each stop has an id, words (what the slider says), full and short ruler labels (the short one shows on a phone), figures (how many people the drawing fills, out of 24), the sentence and three starts, each with a name, a detail and whether it starts now. The slider's value is the stop's position in that list, so adding a stop only needs a longer list; keep the three rows per stop so the list never changes height.

What does a screen reader hear?

The slider is named “Team size” and reads each stop in words (“51 to 200 people”), not a bare number. The drawing is hidden from it, because the readout, the sentence and the list carry the same facts; the sentence is the page's one polite status, so each move is announced once. The ruler labels are buttons for a pointer only (out of the tab order), since the slider already reaches every stop with the keys.

Why does Continue refuse before I touch the slider?

The thumb starts on a guess (11–50), which is not an answer. Until it moves, or a label is pressed, Continue says “Move the slider first.” in a line that is always reserved and puts focus on the slider. After that Continue saves.

How is the drawing built?

Twenty-four person icons in a fixed grid, filled up to the stop's count and drawn as faint outlines after it, plus a plus that appears only at the last stop. It is always left to right, even on a right-to-left page, and hidden from assistive technology. Its size never changes, so the page does not move as you slide.

What stays local in the demo, and how do I wire it?

Everything: Continue says the size was saved in this demo and nothing leaves the page. In your app send the stop's id to your server where submit says so and set up what the response says. The “Now” and “Later” lines are typed preview text; derive them from what your product really enables for that size.

How does it look on a phone?

The ruler labels shorten (“201–1k”, “1k+”), the drawing shrinks to fit, and Continue pins to the foot of the screen. The list under the sentence scrolls with the page.

  • Pro

    A role question as a stack of five cards, each with an icon and a line on what it opens first, a field inside Something else that waits at its height, and one sentence that says where the product will start you.

  • Pro

    A multi combobox with chips over eighteen industries that holds three, says the limit in words and refuses a fourth instead of switching anything off, with an Add row for a name that is not on the list.

  • Pro

    A use-case question as a grid of six tiles on shared hairlines, each a native radio with a small drawing of its board, and one sentence under the grid that says which board opens first.

  • Pro

    A goal question split in two: four goals as radio rows on one side and the plan the pick makes on the other, three things to set up with an Include switch each and one sentence that counts what stays.

  • Pro

    A one-question survey in a non-modal popover under a Quick question tab on a drawn app bar, with six radio answers, a text box for Other that is always there, and a sentence that says what the answer does.

  • Pro

    A course library's first-run track picker as a whole screen: three tracks in a single-open accordion where the open row is the choice, its first lessons, and a line and a button worked out from the pick.