AtlasConceptInteractive preview
Atlas: Help article
A developer docs article with numbered steps, a tabbed code block with copy, a warning callout, a scroll-spy table of contents, a helpfulness widget and related articles.
- Category
- Search
- Platform
- Web
Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this screen
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/screens/atlas-help-article.json2. Use it
Every prop is optionalapp/page.tsx
import AtlasArticle from "@/components/atlas-article";
export default function Page() {
return <AtlasArticle />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- White page, slate #0f172a ink, teal #0d9488 accent, with a 380px dotted-grid wash at the top that fades out. A sticky 64px translucent header with the 'A' logo, a 380px search button showing the current query, nav links and a dark Dashboard button.
- From 1280px three columns: a 232px docs navigation with the current area expanded and the current page marked by a teal left border, a content column up to 760px, and a 232px sticky right rail. From 1024px the left navigation hides; on phones the table of contents becomes a collapsible 'On this page' panel.
- Article head: a teal '← Back to results for “rotate api key”' link, a 'Docs › Authentication › API keys' breadcrumb, a 40px semibold title, a 17px lede, then a Guide badge, updated date, read time and a 'Reviewed by Platform Security' avatar pair.
- Steps have 32px numbered teal circles joined by a vertical line, a teal 'STEP 1' eyebrow and a 22px heading. Step 1 holds a dark #0b1220 code card with cURL / Node / Python tabs, a file name, line numbers, light syntax colouring, a Copy button that becomes a teal check and 'Copied' for 2 seconds, and a '200 OK' response block.
- Step 3 has an amber warning callout (#fffbeb, amber left edge, triangle icon). The right rail has 'On this page' with a teal indicator that slides to the current section as you scroll, and a 'Was this helpful?' card: Yes shows a thank-you with a popping check; No opens reason chips, an optional 500-character textarea and Send feedback.
- Below the article, three related-article cards that lift slightly and turn their title teal on hover; opening one swaps the article in place.
How it behaves
- Scrolling the page moves the teal indicator in 'On this page' to the section currently at the top; clicking an entry scrolls to it (instantly with reduced motion).
- The code tabs switch with a click or the Left/Right arrow keys and the code and file name change; Copy copies the visible snippet, shows 'Copied' with a check for about 2 seconds and announces it.
- Clicking No reveals reason chips and a textarea; Send feedback stays disabled until a reason is picked or text is typed, then shows a thank-you; Yes shows a thank-you straight away and 'Change answer' resets it.
- The title, breadcrumb, meta and code reflect the article passed in, and 'Back to results for “…”' shows the query and calls onBack.
- Opening a related article replaces the content, resets the feedback widget and returns to the top.
- At 375px the table of contents is a collapsible panel, the code block scrolls sideways inside its card only, and the feedback widget sits at the end of the article.
