fndn/ui

Components for React, Vue and Svelte, built from one spec

Each component is a JSON spec, a Tailwind recipe and thin adapters that render the same markup in all three. Try it here, then add its files to your project and make them yours.

Showcase

Whole app screens built only from these components: open one to use it.

  • Code editorAn editor window: files, tabs over the code, a terminal and problems panel, source control with a diff, a command palette and an assistant that proposes a fix.
  • Issue trackerAn issue tracker: projects in a sidebar, search on Ctrl/⌘ K, a filtered list with bulk actions, an issue panel with its fields and comments, and settings with a danger zone.
  • Web browserA browser window: tabs that open, close and load, an address bar with suggestions, bookmarks, downloads, a main menu, and History and Settings pages.

Components 72

The basic building blocks: one control or one piece of display each.

  • ButtonTriggers an action, from the main call to action to a small icon button.
  • ToggleA button that stays pressed, such as Bold in a text toolbar.
  • Button GroupButtons joined into one control, such as a split button or a toolbar segment.
  • ClipboardCopies a value such as an API key, a link or a command.
  • Toggle GroupA row of toggle buttons where one or several stay pressed.
  • InputA one-line text field.
  • SelectPick one value from a list that opens from a field.
  • SwitchTurns a setting on or off, taking effect at once.
  • Segmented ControlPick one of a few options that sit side by side.
  • CheckboxTurns one option on or off, independently of the others.
  • Radio GroupPick exactly one of a short list of options, all visible at once.
  • ComboboxA select you can type into to filter its options.
  • SliderPick a number, or a range, by dragging along a track.
  • LabelThe name of a form control, shown above or beside it.
  • ListboxA list of options in the page to pick one or several, without a popup.
  • Number InputA number field with buttons to step the value down and up.
  • CalendarA month grid to pick a date, several dates or a range.
  • FieldA label, a control and its help or error text, wired together.
  • Pin InputA one-time code or PIN typed one character per box.
  • Tags InputA field that collects several values as tags, such as emails or keywords.
  • Date PickerA date field that opens a calendar, for one date, several dates or a range.
  • EditableText that turns into a field when you edit it.
  • RatingA score out of a few stars, which can be set or only shown.
  • TextareaA multiline text field that grows with its text.
  • Input GroupA text field with addons at its start or end: text, an icon or a button.
  • Password InputA password field with a button that shows or hides what was typed.
  • File UploadPick files by dropping them on a zone or choosing them from the system dialog.
  • MenuA list of actions that opens from a button.
  • TooltipA short label that names a control on hover or focus.
  • PopoverA small panel anchored to its trigger, with a title, content and a close button.
  • Hover CardA preview that opens when its trigger is hovered or focused.
  • DialogA window over the page for a form, details or settings.
  • Alert DialogA window that asks a person to confirm a destructive or important action.
  • DrawerA panel that slides in from an edge of the screen and can be swiped away.
  • Context MenuThe menu a right-click opens on a row, a file or a canvas.
  • SearchA search field and its results in one panel, to find and run a command.
  • TabsSwitch between views that share one place.
  • PagerPrevious, a position such as “2 of 5”, and next, for stepping through a short set.
  • BreadcrumbA trail of links that shows where the current page sits.
  • Page HeaderThe strip at the top of a screen's content: a title, a description, a back link and the actions.
  • Navigation MenuA site's top navigation, with links and panels of links.
  • Tree ViewA hierarchy of rows that open and close, such as files and folders.
  • StepsA multi-step flow shown as numbered markers: done, current and to do.
  • LinkA link in running text or on its own.
  • CardA surface that groups the content of one thing, with an optional header and footer.
  • ChipA monospace chip for a code value in text or a table.
  • Status PillA tinted pill with a dot for a status, such as Active or Failed.
  • TagA small label attached to something: a category, an environment, a file.
  • Value PillA plain value, such as a date or an amount, set off in text.
  • Entity ChipA person, team or company named inline, with its monogram.
  • Text RowA label and its value on one row, as in a summary or an invoice.
  • Progress RingA small ring that shows a task's progress, with a count or a mark in its centre.
  • Code BlockCode to read and copy: a listing with line numbers, a diff or a command.
  • Code ViewCode on its own, with line numbers: a listing, a diff, or an editor.
  • CollapsibleA button that shows or hides a region under it.
  • CountA small number badge next to a label, a tab or a heading.
  • KbdShows a keyboard key or shortcut, such as ⌘ K.
  • AvatarA picture or initials that stand for a person, a team or a source.
  • SeparatorA thin line that divides content, with an optional label.
  • AccordionA stack of sections that open and close, one at a time or several.
  • Scroll AreaA scrolling region with a thin scrollbar that shows only while it is used.
  • Aspect RatioA box that keeps its width-to-height ratio for images, video and embeds.
  • SplitterPanels side by side with a handle between them that resizes them.
  • CarouselA row of slides that scrolls sideways one page at a time.
  • SpinnerA small spinning ring for work of unknown length.
  • ShimmerA label with a moving sheen that says work is under way.
  • Empty StateWhat a list, a table or a popup shows when there is nothing in it.
  • AlertA message in the page: a note, a success, a warning or an error.
  • ProgressA bar that shows how far a task has gone.
  • ToastA brief message that appears in a corner and leaves by itself.
  • MessageOne message of a conversation with an assistant.
  • TableRows and columns of data, such as invoices, members or deploys.

Blocks 20

Built from several components for a product use: agent surfaces, tables, composers.

  • Agent ScreenA live view of the screen an agent is working on, with its cursor.
  • Approval CardQuestions and actions an agent asks a person to approve before it goes on.
  • Chat ComposerA chat panel with conversation tabs, a thread of messages and a composer.
  • Command PaletteEvery page and action of an app in one searchable list, opened with ⌘K.
  • Context CardsThe passages an agent retrieved to answer a question, each with its source.
  • Diff TableChanges an agent proposes to a table, accepted or rejected row by row.
  • Filter TableA table with filter chips above it that narrow its rows in place.
  • Fine-tune CardA small inspector for the last adjustments to something an agent made.
  • FlowchartAn agent workflow drawn as a trigger and its conditions on a canvas.
  • Insight CardsInsights from an agent, one at a time, each with a small chart.
  • Loading StateA compact loader with an elapsed timer for long-running agent work.
  • Prompt BarThe composer of an agent: a growing text field with attachments, a model picker and send.
  • Recommendation CardA suggestion from an agent with its confidence, the action to take and the alternatives.
  • Records TableA spreadsheet-style table of records with sorting, selection and column menus.
  • Selection ActionsA toolbar of AI actions that appears under the text a person selects.
  • Sidebar NavAn app's side navigation, which collapses to a rail of icons.
  • Streaming TextAn agent's answer as it streams in, with sources and follow-up questions.
  • Task RowsThe live status of an agent's tasks, each row opening to its steps.
  • ThinkingWhat an agent is doing while it works, with the steps behind it.
  • Tool ChipsAn agent run shown as compact rows of tool calls and the files they changed.