rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

FormLayout

Grid-based layout wrapper for arranging form fields in single or multi-column configurations.

Examples

Vertical Stack

Fields stacked vertically. The default form layout.

Horizontal (Label Beside Input)

Labels aligned to the left of inputs for compact vertical space.

Grid (2-Column)

Two-column grid layout for denser forms.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { FormLayout } from "@rokle/components";
import { FormLayout } from "@rokle/components";

export function Example() {
  return <FormLayout />;
}

API Reference

PropTypeDefaultDescription
columns1 | 2 | 31Number of columns in the field grid.
gap"sm" | "md" | "lg""md"Spacing between fields.
childrenReactNode-Field components.