Base UI SolidJS 2

Unstyled components.
Finely reactive.

Accessible, headless building blocks for Solid. Every part, prop and interaction of Base UI, rebuilt on signals. You bring the styles.

settings.tsx
Volume64
Alignment
Font size

@egoist/solid-base

Every Base UI part, on signals

38 components with the same parts, props, data attributes and keyboard behavior as upstream — written for Solid 2, not translated from React.

Accessible by default

Focus management, keyboard navigation and screen reader semantics come built in.

  • Roving focus, typeahead and dismissal
  • Focus traps, return focus and scroll locking
  • RTL, labels and form validation
Accessibility
tabs.tsx

Arrow keys move between these tabs. Home and End jump to the ends.

Coverage
x
import { Avatar } from '@egoist/solid-base/avatar';

type User = { handle: string; photo: string; initials: string };

export function UserAvatar(props: { user: User }) {
  return (
    <Avatar.Root
      class={(state) => ['avatar', { loaded: state.imageLoadingStatus === 'loaded' }]}
      render={(rootProps) => <a {...rootProps} href={`/@${props.user.handle}`} />}
    >
      <Avatar.Image src={props.user.photo} />
      <Avatar.Fallback delay={600}>{props.user.initials}</Avatar.Fallback>
    </Avatar.Root>
  );
}

Native to Solid 2

Live props and state, accessors and createX primitives. No virtual DOM, no re-renders.

  • A render prop that runs once
  • State as data attributes for styling
  • Server rendering and hydration
Composition

Handbook

Styled by you, end to end

No CSS ships with the components. Use plain CSS, modules or utility classes against data attributes and CSS variables.

Style with any tool

Pass a class or a function of the component's state, then target state attributes.

  • [data-checked], [data-open], [data-highlighted]
  • CSS variables for sizes and positions
  • Enter and exit transitions
Styling
[data-unchecked]
[data-checked]
[data-disabled]

Components

The full set

Build with Solid. Style it yourself.

Accessible primitives, finely reactive,
and entirely yours to design.

Get Started