# segmentio/ui-box

Blazing Fast React UI Primitive

Repository: https://github.com/segmentio/ui-box
Canonical: https://ross.abutalabs.com/products/ui-box
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, css-in-js, ui-components, component, react-component
Last push: 2026-06-25T23:25:10+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 3476, "days_push": 69, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1063, forks 53 (observed 2026-08-28T04:03:26.281464+00:00)

## What it is
ui-box is a low-level CSS-in-JS React primitive that lets you set all CSS properties via simple React props on a single Box component. It is designed to be simple, fast, and extensible for building reusable styled components without wrapper elements or classes.

## Use cases
- style react components with props instead of css classes
- add margins and padding to components without wrapper divs
- build reusable ui primitives with css-in-js
- create hover and focus styles with selectors prop
- render any dom element or react component with custom styles

## When to choose
- you want a fast, minimal css-in-js primitive for react
- you need to pass spacing and style props to reusable components
- you want to avoid wrapper elements for layout tweaks

## When to avoid
- you need a full component library with prebuilt ui widgets
- you prefer plain css, css modules, or utility-class frameworks
- you need shorthand css values like margin="10px 20px"

## Facets
- artifact type: library
- maturity: active
- function: ui-components, css-framework, frontend-framework
- domain: frontend, web-development, web-design
- platform: browser, cross-platform
- tags: css-in-js, react-primitive, style-props, layout, typescript, nodejs

## Member repositories
- segmentio/ui-box (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.281464+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:41.054520+00:00, confidence not recorded.
  - readme: https://github.com/segmentio/ui-box (fetched 2026-08-28T04:03:26.281464+00:00, sha a1cdfb7823e3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
