Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Goal Target Tile Grid Stats Block for React

Four regional goal tiles for a sales team, each a count of targets met and a bar of five segments, solid for met, outlined for the next, with a hint row that names the next market and its value.

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

A goal target grid for React with Base UI. A start-aligned header counts the regional targets met ("10 of 20 regional targets are met") with the quarter's week and the dollars won at its end. Under it one inset frame of four tiles, which share their hairlines, shows the regions of a sales team: Europe, North America, Asia Pacific and Latin America, two by two and four across from lg. A region's goal is five targets, a market each, worked in order. Its tile shows how many are met as a rolling number ("3 / 5 targets"), the dollars won against the dollars aimed for, and a bar of five segments: a met target is solid, the next one is outlined and the rest are quiet. A hint row under the bar names the next market and what it is worth ("Next: Nordics, $40K"). Every count, sum and segment is computed from one typed list of regions. It's built from SlidingNumber and Guides, with the bars in your theme's foreground colour.

FAQ

How do I change the regions and their targets?

Edit REGIONS at the top of the file: a region is a name, a list of targets (a market and an amount in dollars) and how many are met. Targets are worked in order, so the first met are solid and the next is outlined. The counts, sums, segments, hint rows and header are computed from the list. A region needs five targets to fill the bar; with another number the segments divide the bar evenly.

How do the segments read?

Solid means met, outlined means next, and a quiet fill means still to come. The three differ in structure (filled, outlined and tinted), not only in colour, so the bar reads in a greyscale print. The bar is one image named with its count ("Europe: 3 of 5 targets met"), because the words above and below it carry the detail.

What is the hint row?

It names the market after the last one met and its value, so a tile says what to close next, not only how far along it is. When every target is met it says "All targets met". The arrow before it mirrors in a right-to-left page.

Is it accessible?

Yes. Each region is a list item with a heading. The count, the dollars and the hint are text, the bar is an image with an accessible name, and amounts sit in bdi elements so a right-to-left page doesn't reorder "$168K of $244K". Contrast passes in light and dark.

How does it fit on a phone?

The tiles sit two by two in one frame, with the hint row reserving two lines so the tiles in a row stay level when "Next: Gulf Coast, $38K" wraps. Nothing scrolls sideways at 320 pixels.

What moves?

The header and the frame fade up once on load, and each count rolls up the first time its tile scrolls into view. With reduced motion everything simply appears.

  • Pro

    Goal Ring Tiles Stats

    Goals and progress

    Four goal tiles for an OKR tool, each a thin ring with the part done drawn solid, the part today's pace will add drawn lighter after it and a tick for the target, with the projected finish in words.

  • Pro

    Ratio Tile Grid Stats

    Goals and progress

    Four goal tiles for a publishing house, each a ratio like 11 of 16, a progress bar and a pace tick that marks where the plan says the goal should stand today, with how many days ahead or behind it is.

  • Pro

    Goal Status Board Stats

    Goals and progress

    A rail-to-rail status board for sales pace: four cells that lead with a state word and a glyph, Ahead, On pace, Behind or Missed, three figures each, and a legend row that defines the four glyphs.

  • Pro

    Quota Tile Grid Stats

    Goals and progress

    Six plan-quota tiles (seats, API calls, storage, projects, bandwidth, builds) with used against limit, a bar, what is left and a reset hint in days; a tile at 90% or more gets a solid bar and an Upgrade link badge.

  • Pro

    OKR Target Cards Stats

    Goals and progress

    Three objective cards for an OKR tool, each with a large completion percent that is the mean of its three key results, nested key-result bars with current and target, and a line naming the key result furthest from its goal.

  • Pro

    Target Ratio Progress Stats

    Goals and progress

    Five team rows led by a booked-over-quota ratio at display size, each with a bar along the row's floor and the share and the gap written at the end.