Skip to content
Scrim UI

Text Response

Clean prose styling for a standard assistant answer with inline code.

From AICSS ↗React, Vue & Svelte

Preview

AI interfaces work best when every state is clear and easy to act on.

Install

Choose your framework below and copy the source into your project. For React, place the component and its CSS Module in the same folder, then import the component where you need it.

Code

Open source ↗
TextResponse.tsx
"use client";

import styles from "./TextResponse.module.css";
import type { ReactNode } from "react";

export function TextResponse({ children }: { children?: ReactNode }) {
  return <div className={styles.prose}>{children}</div>;
}

Copy both the component and its CSS Module into the same folder.

Related components