import {TextBlock} from "attio/client"
It can be thought of as a
<div style={{ display: "flex", flexDirection: "row" }} />`

Example

form-with-textblock-dialog.tsx
import React from "react";
import { Forms, useForm, showToast, TextBlock } from "attio/client";

export function FormWithTextBlockDialog() {
	const { Form, SubmitButton, TextInput } = useForm(
		{
			firstName: Forms.string(),
			lastName: Forms.string(),
		},
		{
			firstName: "",
			lastName: "",
		},
	);
	return (
		<Form
			onSubmit={async (values) => {
				await showToast({
					title: "Form submitted",
					variant: "success",
					text: JSON.stringify(values),
				});
			}}
		>
			<TextBlock>
				Some additional information to understand the fields below
			</TextBlock>
			<TextInput label="First name" name="firstName" />
			<TextInput label="Last name" name="lastName" />
			<SubmitButton label="Submit" />
		</Form>
	);
}

Props

children
React.ReactNode
required
The text content of text block, usually text, but can be other components.
align
"left" | "center" | "right"
How to optionally align the content of the text block.Defaults to "center".