Skip to content

HomeTemplate

Stable

The first screen of a new conversation: one greeting and one tray, centered.

Also known as home page layout, landing layout

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Greeting, tray and AI notice

New chat

Needs you

AI can make mistakes. Check important information.

A greeting, a tray with one row and a message box, and the AI notice below.

When to use it

The screen before a conversation starts. One greeting and one block of content sit in a narrow centered column, so nothing competes with getting started.

Made of: Heading · Tray · Note

Use it for

  • A new chat, before the first message.
  • A landing screen whose greeting is answered by a Tray with a message box.
  • Showing the AI notice right under the starting point.

Not for

  • A conversation that has already started: use ThreadTemplate.
  • A screen with several sections or dashboards.

Do and avoid

Needs you

Do. Fragment: one greeting and one tray, so starting is the only job.

Needs you

What is new
Tips and tricks
Avoid. Extra blocks under the tray pull eyes away from getting started.

Do

  • Use it only for a new conversation, before the first message.
  • Keep one heading and one block of content.
  • Put the Composer inside the Tray so they share one width.
  • Place it inside AppShell, which gives it the height to center in.

Avoid

  • Do not add more sections below the tray. Anything extra competes with the greeting.
  • Do not use it once a conversation has started. Switch to ThreadTemplate.
  • Do not make it wider. The narrow column keeps lines easy to read.

On a phone

  • The content sits at the top on a phone and is centred vertically from the md breakpoint up.
  • Side padding is 1rem and the content column is capped at 48rem, so it fills the screen on a phone.
  • The area scrolls on its own when the content is taller than the screen.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started