What is a component

A component is one piece of a screen that does one thing well: a field, a button, a stack of cards you can swipe.

What you get

The code of that one piece, copied into your project: how it looks, how it moves and how it behaves. It works on its own. You don't need the rest of airflib, and your app never asks our site for it.

Need several pieces that already work together? That is a flow.

Checked before it ships

Every component goes through a careful review before it is released, and is tested in the main browsers: Safari, Chrome and Firefox, on computers and on phones. An AI agent also has to add it to an empty app from the prompt alone.

The awkward cases and the errors are built in, wherever they can happen to it:

  • Loading, nothing found, no connection, something failed, try again.
  • A finger that changes its mind halfway, a double tap, a very fast swipe.
  • Long words, narrow screens, light and dark.
  • A keyboard, a screen reader, and less motion for those who ask for it.

Your server and your data are yours: connect them, then try your own errors once.

Make it yours

There are three ways, lightest first, and your agent knows them from the prompt:

  1. Settings: switches, words and numbers the component takes.
  2. Style: colours, font, corners and sizes.
  3. Code: anything else. The files are yours.

Can I change the font?

Yes. Set it once with --airflib-font and the blocks follow.

Tell your agent: “Use my app's font in this component.”

And colours, corners, sizes?

Yes. The settings you try on the site come with the prompt, and each component lists what else can be set. Theming shows how to do it for all of them at once.

Tell your agent: “Make it match my brand: my colours and my corner radius.”

Can I put my own words and pictures in it?

Yes. What you see on the site is sample content. You hand the component your own.

Tell your agent: “Replace the samples with my real content from this project.”

Can I remove a piece, like a button?

Often it is a switch in the settings. If there is no switch, your agent removes it from the code. It is your copy, so that is allowed.

Tell your agent: “Hide the button. If there is no setting for that, change my copy of the code.”

Can I add something of my own?

Yes: next to it, inside it where it takes content, or in its code when nothing lighter will do.

Tell your agent: “Add a small badge to it. Use the lightest change that works and show me what changed.”

What if I break it?

Only your copy changes. Go back to your last saved version, or ask your agent to install a fresh copy with --overwrite.

Tell your agent: “Save the project before you change this, so we can undo it.”

How do I add one?

Five steps, in pictures: How it works.