Introduction

Fasla provides a collection of reusable components that you can copy and paste into your apps. It's not a traditional component library — you own the code and can customize it however you want.

Features

  • 29+ components — UI primitives, app blocks, and effects
  • Accessible — built with accessibility in mind, keyboard navigation included
  • Animated — smooth animations with Framer Motion, respects reduced motion
  • TypeScript — 100% TypeScript with full type safety
  • Dark mode — dark mode support out of the box
  • Customizable — built with Tailwind CSS, easy to customize

Component categories

UI primitives

ButtonAdd an accessible React button with visual variants, responsive sizes, loading feedback, and composable child rendering.InputUse a typed React text input with validation states, icon support, accessible focus styles, and Tailwind customization.CardCompose React card layouts from accessible header, title, description, content, and footer building blocks.BadgeDisplay compact React status indicators and labels with reusable badge variants and semantic Tailwind styling.SkeletonCreate accessible React loading placeholders for text, avatars, cards, and custom content layouts with Fasla skeletons.AvatarRepresent people with a React avatar: photo, initials or icon fallback, three sizes, an optional border and a presence dot.Status IndicatorShow online, away, busy or offline presence with a React status dot whose accessible name follows the page language.CheckboxAdd an accessible React checkbox for binary selections with controlled state, labels, and keyboard interaction.RadioAdd an accessible React radio for choosing one option from a set, with a plain control, a bordered card layout, and full RTL support.SwitchUse an accessible React switch for on-off settings with controlled state, keyboard support, and clear visual feedback.SelectBuild a typed React select control for choosing one option with accessible interaction and customizable styling.TextareaAdd a multi-line React text input with character counting, resize options, validation states, and accessible labels.TabsOrganize related React content into accessible tab lists, triggers, and keyboard-navigable panels.ComboboxCreate a searchable React combobox with single or multiple selection, accessible controls, and typed options.

Blocks

Effects

Get started

Install the CLI and add your first component.

Installation