kovax-react 0.7.0 is on npm. After 0.6 shipped product UI (Avatar, Menu, Pagination, breakpoint hooks), 0.7 focuses on production ergonomics: clear Server vs Client boundaries for the App Router, automated a11y checks in Jest, and bundle size transparency per entry point.
- ๐ฆ npm:
kovax-react@0.7.0 - ๐งโ๐ป Repo: github.com/MrKamura/kovax
- ๐งช Live docs: mrkamura.github.io/kovax
TL;DR โ everything since 0.6.0
| Area | What shipped |
|---|---|
| RSC / Next.js |
kovax-react/server โ RSC-safe Box, Stack, Container, Text, Heading
|
| Client bundles |
"use client" prepended to client-only tsup outputs after build |
| Deep imports | Unchanged RSC-safe entries: kovax-react/typography, /badge, /progress
|
| Testing |
jest-axe, expectNoAxeViolations(), automatic axe pass in setupTests.ts
|
| DatePicker |
aria-label on popover panel and datetime type="time" fields |
| Tooling |
.size-limit.json, npm run size, README size-limit + bundlejs badges |
| npm | Expanded keywords (nextjs, rsc, a11y, server-components, โฆ) |
| Docs |
docs/NEXTJS_APP_ROUTER.md โ ThemeProvider placement, FOUC, import matrix |
No new runtime peer dependencies.
npm install kovax-react@0.7.0
Why this release exists
Three recurring questions after 0.6:
- Which imports work in Server Components?
- How do we keep accessibility from regressing?
- How big is each deep import really?
0.7 answers all three without adding runtime deps.
"use client" boundaries
After npm run build, client bundles include "use client" so Next.js (and similar RSC stacks) treat them correctly.
| Import | "use client" |
Use in |
|---|---|---|
kovax-react |
yes | Client Components |
kovax-react/server |
no | Server Components |
kovax-react/typography, /badge, /progress
|
no | Server Components |
kovax-react/tokens, /form, /overlays, โฆ |
yes | Client only |
Rule of thumb: hooks, context, effects โ client entry. Static markup โ server entry.
kovax-react/server
// app/page.tsx โ Server Component
import { Container, Heading, Text } from "kovax-react/server";
import { SignInForm } from "./sign-in-form";
export default function Page() {
return (
<Container maxW="lg">
<Heading level={1}>Welcome</Heading>
<Text size="lg">Sign in to continue.</Text>
<SignInForm />
</Container>
);
}
// app/sign-in-form.tsx
"use client";
import { Button, FormControl, FormLabel, Input, VStack } from "kovax-react";
export function SignInForm() {
return (
<VStack gap={16} align="stretch">
<FormControl>
<FormLabel htmlFor="email">Email</FormLabel>
<Input id="email" type="email" />
</FormControl>
<Button type="submit" variant="solid" color="primary">
Sign in
</Button>
</VStack>
);
}
Mount ThemeProvider in a client providers.tsx wrapper โ full walkthrough: NEXTJS_APP_ROUTER.md.
FOUC and data-kovax-theme
0.7 documents an inline script pattern for data-kovax-theme before first paint (system / stored color mode).
0.8 ships ColorModeScript as a drop-in (Chakra-style). On 0.7, follow the doc; upgrade to 0.8 when you want the component API.
jest-axe in component tests
import { render } from "@testing-library/react";
import { expectNoAxeViolations } from "../test-utils";
import { Button } from "./Button";
it("has no axe violations", async () => {
const { container } = render(<Button>Solid</Button>);
await expectNoAxeViolations(container);
});
setupTests.ts wires axe globally โ npm test catches many a11y regressions early.
size-limit and README badges
.size-limit.json enforces gzip budgets per entry; npm run size fails CI on bundle bloat.
README tables link size-limit badges and bundlejs.com analysis for kovax-react, /server, /form, /overlays, etc. โ useful when picking deep imports in App Router apps.
DatePicker accessibility
- Labeled popover panel (
aria-label). - Datetime variant (
variant="datetime") labels time inputs.
Small but important for calendar + time pickers in forms.
Documentation
-
docs/NEXTJS_APP_ROUTER.mdโ RSC import matrix, providers layout, FOUC notes. - Playground Foundation topic links to the guide.
- Cross-links in README and Getting started.
Try live: mrkamura.github.io/kovax (EN/RU UI).
Changelog & upgrade path
Full list: CHANGELOG.md.
0.8 adds Tailwind v4 preset, form library adapters, ColorModeScript, and Storybook โ see dev-to-v0.8.md.
Issues and PRs welcome on GitHub.
Thanks for reading.
Top comments (0)