Overview

Introduction

An open-source SolidJS component library for building accessible user interfaces.

Solid Base (@egoist/solid-base) is an unstyled component library for building accessible user interfaces with SolidJS 2.

The focus is on accessibility, performance and developer experience. The goal is a complete set of open-source UI components with a delightful developer experience.

Built for Solid#

The components are written with idiomatic Solid 2 primitives: fine-grained reactivity, live props instead of re-renders, createX primitives instead of hooks, and no virtual DOM. The API follows Solid — class instead of className, native events, lowercase attributes. If you're coming from React, these differences are listed in Coming from React.

Thousands of tests cover rendering, ARIA, keyboard and focus behavior, controlled and uncontrolled state, and event details.

Features#

Headless#

The components are unstyled, don't bundle CSS, and don't prescribe a styling solution. You retain complete control over your application's CSS layer. They work with Tailwind CSS, CSS Modules, plain CSS, or any other tool that produces class names or inline styles. See Styling.

Accessible#

Poor accessibility can make your application difficult to navigate for all users, not just for users with disabilities. Accessibility is the primary focus. Components adhere to the WAI-ARIA design patterns and are tested for roles, ARIA attributes, keyboard interactions and focus management. See Accessibility.

Composable#

Component APIs are fully open, so you have direct access to each node, you can add or remove parts, and you can wrap them however you prefer. The render prop lets you replace any part's element or compose it with your own components. See Composition.

Requirements#

  • Solid: solid-js 2 and @solidjs/web 2 (peer dependencies). Solid 1 is not supported.
  • Browsers: the library targets modern browsers that implement features marked as Baseline Widely Available.
  • Bundlers: the package ships precompiled ES modules, plus its JSX source under the solid export condition for bundlers set up to compile Solid, such as Vite with vite-plugin-solid.

Credits and license#

Solid Base is MIT licensed. Its component design and parts of its documentation are derived from Base UI by the MUI team, also MIT licensed.