React prop
fontSize="4xl"
JSX-safe alias
React demo
The React package no longer tries to be a different styling engine. It simply normalizes JSX-friendly props back into the same AtomAttr attributes the HTML engine already understands.
Canonical mapping
React prop
JSX-safe alias
HTML output
Canonical AtomAttr key
Component code
import { Box, H1, Txt, Btn, Row, Badge } from 'atomattr/react';
export function HeroCard() {
return (
<Box bg="slate-950" text="white" p="8" rounded="3xl" shadow="2xl">
<Badge bg="brand-light" text="slate-950">React</Badge>
<H1 mt="4" fontSize="4xl" weight="black">
Same contract, better ergonomics
</H1>
<Txt mt="3" text="slate-300">
Camel aliases normalize back into canonical AtomAttr keys.
</Txt>
<Row mt="6" gap="3" wrap>
<Btn px="4" py="2" rounded="full" bg="brand-light" text="slate-950">
Launch
</Btn>
</Row>
</Box>
);
}
Rendered intent
Camel aliases normalize back into canonical AtomAttr keys.
For keys JSX handles cleanly: bg, p, rounded, text.
For dashed canonical keys: fontSize, minH, borderColor, gridCols.
attrs for exact parityWhen you want React snippets to visually match HTML examples exactly.