# Tenor Component Library > Free React components made in Tenor (tenor.design). Each component is one self-contained .tsx file: React is its only import and its styles are inside the file. No Tailwind, CSS files or packages are needed. ## Install - Any React project: fetch `https://tenor.design/r/.tsx` and save it unchanged as `components/tenor-ui/.tsx` under the source root. - A project with a components.json: `pnpm dlx shadcn@latest add https://tenor.design/r/.json`. - Registry index: https://tenor.design/r/registry.json ## Use - Every prop is optional. With no props a component renders its approved default content. - Pass real data through props. Do not edit the default content in the file. - Theme with CSS variables on the component or an ancestor: `--tui-surface`, `--tui-stroke`, `--tui-text`, `--tui-muted`, `--tui-accent`, `--tui-font-sans`, `--tui-font-mono`. Each file lists the variables it reads. - Components that run by themselves stop under `prefers-reduced-motion` and pause off screen. ## Components ### CommitGraph Commits beside the branch lanes they sit on. Pick a branch to see only its commits. - Page: https://tenor.design/components/commit-graph - Source: https://tenor.design/r/commit-graph.tsx - Registry item: https://tenor.design/r/commit-graph.json - Size: 580 by 480 px - Props: - `theme` (`"dark" | "light"`, default `"dark"`): Dark or light palette. - `commits` (`readonly CommitGraphCommit[]`, default `commitGraphCommits`): The history, newest first. A commit on a branch that is not in branches is left out. - `branches` (`readonly CommitGraphBranch[]`, default `commitGraphBranches`): Branches in lane order, left to right. The first is the trunk: its view shows every commit. With none, nothing renders. - `branch` (`string`): Name of the selected branch when it is controlled. Pair with onBranchChange. - `defaultBranch` (`string`): Name of the branch selected at first when it is not controlled. Left out, the trunk. - `onBranchChange` (`(branch: string) => void`): Called with a branch's name when it is picked or the selector moves on to it. - `repository` (`string`, default `"relay/web"`): Repository name beside the heading. - `interval` (`number`, default `6000`): Milliseconds on each branch before the selector moves to the next, not counting time it is open, hovered or focused. 0 keeps the selected branch. - `onFetch` (`() => void | Promise`): Called when the button is pressed. Return a promise and the icon spins until it settles. - `labels` (`Partial`, default `commitGraphLabels`): Replaces the card's wording, key by key. ### GrowthCard One figure, its change since the last period, and recent periods as bars. Pass several metrics and it steps through them. - Page: https://tenor.design/components/growth-card - Source: https://tenor.design/r/growth-card.tsx - Registry item: https://tenor.design/r/growth-card.json - Size: 525 by 283 px - Props: - `metrics` (`readonly GrowthCardMetric[]`, default `growthCardMetrics`): Metrics to show. More than one makes the card step through them. - `unit` (`string`, default `"USD"`): Unit shown after the figure. - `caption` (`string`, default `"since last week"`): Line under the change. - `interval` (`number`, default `4800`): Milliseconds each metric stays up before the next. 0 keeps the first metric. - `locale` (`string`, default `"en-US"`): Locale used to format the figure. ### LogStream A live log tail. Tabs filter by level, and one button pauses and resumes the stream. - Page: https://tenor.design/components/log-stream - Source: https://tenor.design/r/log-stream.tsx - Registry item: https://tenor.design/r/log-stream.json - Size: 600 by 452 px - Props: - `lines` (`readonly LogStreamLine[]`, default `logStreamLines`): Lines to stream, in order. The set repeats from the top. - `title` (`string`, default `"Logs"`): Heading. - `source` (`string`, default `"worker · staging"`): Where the log comes from, shown beside the heading. - `command` (`string`, default `"tail -f /var/log/worker.log"`): Command shown at the bottom right. - `startTime` (`string`, default `"18:22:24"`): Time on the first row, as HH:MM:SS. Each later line is one second on. - `interval` (`number`, default `700`): Milliseconds between lines. 0 holds the stream still. - `paused` (`boolean`): Sets whether the stream is paused from outside. Left out, the button changes it. - `onPausedChange` (`(paused: boolean) => void`): Called with the new state when the button is pressed. - `labels` (`Partial`, default `logStreamLabels`): Replaces the wording, key by key. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### StorageForecast How full a store is, what fills it, and the date it reaches a threshold at the current growth. - Page: https://tenor.design/components/storage-forecast - Source: https://tenor.design/r/storage-forecast.tsx - Registry item: https://tenor.design/r/storage-forecast.json - Size: 528 by 446 px - Props: - `resource` (`string`, default `"vector index"`): What is measured, written as it reads mid-sentence. Shown in capitals at the top left. - `name` (`string`, default `"relay-prod"`): Name of the instance, shown at the top right. - `parts` (`readonly StorageForecastPart[]`, default `storageForecastParts`): What the used storage is made of, in bar order. Their sizes add up to the used total. - `capacity` (`number`, default `64`): Total capacity. - `dailyGrowth` (`number`, default `1.5`): Storage added per day. - `threshold` (`number`, default `90`): Percent of capacity the forecast runs to. - `nextCapacity` (`number`, default `96`): Capacity after the next resize. - `unit` (`string`, default `"GB"`): Unit written after sizes. - `today` (`Date | string`, default `"2026-12-01"`): The day the figures were read. The forecast date counts on from it, in UTC. - `resizeLabel` (`string`, default `"Resize index"`): Text on the button. - `onResize` (`() => void`): Called when the button is pressed. - `labels` (`Partial`, default `storageForecastLabels`): Replaces the card's wording, key by key. - `locale` (`string`, default `"en-US"`): Locale used to format figures and dates. - `accent` (`string`, default `"#30C653"`): Colour of the projection, the forecast date and the threshold marker. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### GradientPicker An editor for a linear gradient. Select, add, remove and reverse stops, and set each stop's position and colour. - Page: https://tenor.design/components/gradient-picker - Source: https://tenor.design/r/gradient-picker.tsx - Registry item: https://tenor.design/r/gradient-picker.json - Size: 344 by 286 px - Props: - `theme` (`"dark" | "light"`, default `"dark"`): Dark or light palette. - `stops` (`readonly GradientPickerStop[]`): Stops when the picker is controlled. Pair with onChange. - `defaultStops` (`readonly GradientPickerStop[]`, default `gradientPickerStops`): Starting stops when it is not controlled. - `onChange` (`(stops: readonly GradientPickerStop[]) => void`): Called with the new stops after one is edited, added or removed, or the gradient is reversed. - `angle` (`number`): Angle in degrees when it is controlled. Pair with onAngleChange. - `defaultAngle` (`number`, default `90`): Starting angle in degrees when it is not controlled. - `onAngleChange` (`(angle: number) => void`): Called with the new angle after the gradient is turned. - `defaultSelected` (`number`, default `2`): Index of the stop selected at first. - `labels` (`GradientPickerLabels`, default `gradientPickerLabels`): Text for the two source tabs, the gradient type and the stops heading. - `onClose` (`() => void`): Called when the close button is pressed. ### TransferPanel One file transfer: progress, time left, speed, and buttons to pause, cancel and close. It runs a demo until you pass real values. - Page: https://tenor.design/components/transfer-panel - Source: https://tenor.design/r/transfer-panel.tsx - Registry item: https://tenor.design/r/transfer-panel.json - Size: 680 by 350 px - Props: - `transferred` (`number`): Amount transferred so far, in `unit`. Leave it out and the panel simulates a transfer. - `defaultTransferred` (`number`, default `280.5`): Amount a simulated transfer starts from. - `total` (`number`, default `561`): Size of the whole transfer. - `unit` (`string`, default `"GB"`): Unit written after sizes. - `speed` (`number`, default `370`): Current speed. A simulated transfer drifts around this figure. - `speedUnit` (`string`, default `"MB/s"`): Unit written after the speed. - `minSpeed` (`number`, default `350`): Speed at the bottom of the trace. - `maxSpeed` (`number`, default `390`): Speed at the top of the trace. - `secondsLeft` (`number`): Seconds left. Defaults to what remains at `speed`, counting 1000 speed units to one size unit. - `files` (`number`): Files transferred so far. Defaults to the share of `totalFiles` that matches the progress. - `totalFiles` (`number`, default `25513618`): Files in the whole transfer. - `source` (`string`, default `"LOCAL DISK"`): Where the files come from. - `destination` (`string`, default `"ARCHIVE 02"`): Where the files go. - `status` (`"running" | "paused" | "cancelled"`): Sets the state from outside. Left out, the buttons change it. Complete is reached when `transferred` meets `total`. - `labels` (`Partial`, default `transferPanelLabels`): Replaces the panel's wording, key by key. - `locale` (`string`, default `"en-US"`): Locale used to format the file counts. - `onPause` (`() => void`): Called when the transfer is paused. - `onResume` (`() => void`): Called when a paused transfer is resumed. - `onCancel` (`() => void`): Called when the transfer is cancelled. - `onClose` (`() => void`): Called when the panel is closed. A simulated transfer starts again. - `accent` (`string`): Colour of the ruler's leading mark, the percentage and the dot on the trace. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### LayerTree A layers panel you can select, collapse, search and add to. New layers arrive at the bottom. - Page: https://tenor.design/components/layer-tree - Source: https://tenor.design/r/layer-tree.tsx - Registry item: https://tenor.design/r/layer-tree.json - Size: 400 by 400 px - Props: - `theme` (`"dark" | "light"`, default `"dark"`): Dark or light palette. - `accent` (`string`, default `"#e65ce6"`): Colour of the selected layer. - `layers` (`readonly LayerTreeLayer[]`, default `layerTreeLayers`): The tree to start from. Arriving and added layers are kept inside the panel; a new array replaces them. - `stream` (`readonly LayerTreeArrival[]`, default `layerTreeStream`): Layers that arrive one at a time, repeating from the top. Defaults to none when layers is given. - `interval` (`number`, default `1400`): Milliseconds between arrivals. 0 stops them. - `selectedId` (`string`): Id of the selected layer when it is controlled. Pair with onSelect. - `defaultSelectedId` (`string`): Id of the layer selected at first when it is not controlled. Left out, the first layer. - `onSelect` (`(id: string) => void`): Called with a layer's id when it is picked, arrives or is added. - `labels` (`Partial`, default `layerTreeLabels`): Replaces the panel's wording, key by key. ### ProjectProgress Scope, started and completed work over a date range, on one chart. Point at the chart to read any day. - Page: https://tenor.design/components/project-progress - Source: https://tenor.design/r/project-progress.tsx - Registry item: https://tenor.design/r/project-progress.json - Size: 540 by 320 px - Props: - `title` (`string`, default `"Cycle 14"`): Heading of the card. - `start` (`Date | string`, default `"2024-11-15"`): First day of the range, read in UTC. - `end` (`Date | string`, default `"2025-02-15"`): Last day of the range, read in UTC. - `assignees` (`readonly string[]`, default `projectProgressAssignees`): Initials of the people on the project, one avatar each. - `intervals` (`readonly ProjectProgressInterval[]`, default `projectProgressIntervals`): The chart's data at each interval. More than one adds the switch. - `interval` (`string`): Label of the interval shown. Pass it to control the switch. - `defaultInterval` (`string`, default `"Month"`): Label of the interval shown first when the switch is not controlled. - `onIntervalChange` (`(label: string) => void`): Called with an interval's label when it is chosen. - `locale` (`string`, default `"en-US"`): Locale used to format figures and dates. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### TaskColumn One column of a task board: a card per task with its chips, assignees, due date and progress. - Page: https://tenor.design/components/task-column - Source: https://tenor.design/r/task-column.tsx - Registry item: https://tenor.design/r/task-column.json - Size: 380 by 386 px - Props: - `title` (`string`, default `"In review"`): Column heading. - `tasks` (`readonly TaskColumnTask[]`, default `taskColumnTasks`): Tasks in the column, top first. The count beside the heading is their number. - `addLabel` (`string`, default `"Add task"`): Text of the row under the cards, and the name of the header's add button. - `onAddTask` (`() => void`): Called when either add button is pressed. - `onMore` (`() => void`): Called when the header's more button is pressed. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### FailureMosaic Failures by group. Each column is as wide as its share and split by failure kind. Point at a column to read it alone. - Page: https://tenor.design/components/failure-mosaic - Source: https://tenor.design/r/failure-mosaic.tsx - Registry item: https://tenor.design/r/failure-mosaic.json - Size: 520 by 588 px - Props: - `title` (`string`, default `"Failed requests"`): Heading of the panel. - `groupedBy` (`string`, default `"region"`): What the failures are grouped by, as it reads after "by". - `groups` (`readonly FailureMosaicGroup[]`, default `failureMosaicGroups`): One column per group. Their counts add up to the total. - `kinds` (`readonly [FailureMosaicKind, FailureMosaicKind, FailureMosaicKind]`, default `failureMosaicKinds`): The three failure kinds, top to bottom in each column, with their shares of all failures. - `failureRate` (`number`, default `6`): Percent of all requests that failed. - `caption` (`string`, default `"Failed / of requests"`): Line beside the total and the failure rate. - `labels` (`Partial`, default `failureMosaicLabels`): Replaces the panel's wording, key by key. - `locale` (`string`, default `"en-US"`): Locale used to format the counts. - `accent` (`string`, default `"#FF6B00"`): Colour of the first failure kind. - `theme` (`"dark" | "light"`, default `"dark"`): Colour palette. ### SpacingInspector Margin and padding as nested boxes around an element, with a number field on every side. - Page: https://tenor.design/components/spacing-inspector - Source: https://tenor.design/r/spacing-inspector.tsx - Registry item: https://tenor.design/r/spacing-inspector.json - Size: 400 by 400 px - Props: - `theme` (`"dark" | "light"`, default `"dark"`): Dark or light palette. - `values` (`SpacingInspectorValues`): Margin and padding when the inspector is controlled. Pair with onChange. - `defaultValues` (`SpacingInspectorValues`, default `spacingInspectorValues`): Starting margin and padding when it is not controlled. Reset returns to them. - `onChange` (`(values: SpacingInspectorValues) => void`): Called with the new values after an edit or a reset. - `size` (`{ width: number; height: number }`): The element's size. Left out, the label shows the size of the element box as drawn. - `unit` (`string`, default `"px"`): Unit shown beside each value. - `labels` (`SpacingInspectorLabels`, default `spacingInspectorLabels`): Text for the heading, the reset button and the three boxes. - `demo` (`boolean`, default `true`): Nudges padding left and margin top every three seconds until someone interacts. Never runs when controlled. ### RepoActivity A repository's commits for the period, split by branch in one bar. Point at a branch to read it alone. - Page: https://tenor.design/components/repo-activity - Source: https://tenor.design/r/repo-activity.tsx - Registry item: https://tenor.design/r/repo-activity.json - Size: 380 by 304 px - Props: - `theme` (`"dark" | "light"`, default `"dark"`): Dark or light palette. - `heading` (`string`, default `"Repository"`): Heading of the card. - `repository` (`string`, default `"relay/web · main"`): Line under the heading, beside the branch icon. - `branches` (`readonly RepoActivityBranch[]`, default `repoActivityBranches`): Branches in bar order. Each one is a segment and a chip. - `stats` (`readonly RepoActivityStat[]`, default `repoActivityStats`): Counts shown above the bar. - `total` (`number`): Headline figure. Defaults to the sum of the branches' commits. - `unit` (`string`, default `"commits"`): What the headline and the segments count. - `period` (`string`, default `"this week"`): The period the headline covers. - `syncLabel` (`string`, default `"Sync"`): Text of the button. - `onSync` (`() => void`): Called when the button is pressed.