Static parts send no JavaScript
Cards, tables, text and buttons render on the server and reach the browser as plain HTML. Only the parts people interact with bring JavaScript.
Read the introduction →Accessible, themeable React components for crafting polished web apps and design systems. Server-first, built for the Next.js RSC
npx astralis-cli create my-appRecolored by the swatches, no rebuild
Fast pages, components you can see, and nothing to set up.
Cards, tables, text and buttons render on the server and reach the browser as plain HTML. Only the parts people interact with bring JavaScript.
Read the introduction →Click anything on the page to see which component it is, the props it was given and every prop it takes, while you build.
Set up DevTools →The styles ship ready-made. Install the package, import one stylesheet, and every prop works.
Installation guide →Hover to pause, then find each one in the docs.
pnpm add astralis-uiForms, loading states and responsive layout, in a few lines each.
One invalid flag restyles the field and swaps the message.
"use client";
import { useState } from "react";
import { Field, Input, Switch, VStack } from "astralis-ui";
export function FieldError() {
const [invalid, setInvalid] = useState(true);
return (
<VStack gap="5" alignItems="stretch" w="full" maxW="xs">
<Switch checked={invalid} onChange={(e) => setInvalid(e.target.checked)} size="sm">
Simulate a validation error
</Switch>
{/* One `invalid` flag restyles the input and swaps the message. */}
<Field invalid={invalid} required>
<Field.Label>Username</Field.Label>
<Input placeholder="astro_naut" />
{invalid ? (
<Field.ErrorText>That username is already taken.</Field.ErrorText>
) : (
<Field.HelpText>Letters, numbers and underscores only.</Field.HelpText>
)}
</Field>
</VStack>
);
}That username is already taken.
Everything around the library helps you go from idea to shipped page faster.
Install the package, add the provider, and every component here is yours.