# Astryx Form Layout

> A layout container that arranges form fields with consistent spacing and direction. FormLayout handles where fields go, not state or submission. Wrap it in a native <form> for that; <form> has no Astryx replacement, so it stays a plain element. Supports vertical (default), horizontal, and horizontal-labels directions, and can be nested to mix them.  Astryx by Meta. Source: https://astryx.atmeta.com/components/FormLayout

- Author: [Astryx](https://21st.dev/@Astryxdesign)
- License: mit
- Tags: Form, Layout, Field
- npm dependencies: @astryxdesign/core, @astryxdesign/theme-neutral
- Live preview: https://21st.dev/@Astryxdesign/components/astryx-form-layout

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Astryxdesign/astryx-form-layout?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/form.md
