Suggested Prompt Grid
A copy-paste ai / chat ui component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AI / Chat UIHTMLCSSany framework
Copy into your project
HTML
<!-- Suggested Prompt Grid — empty-conversation starter chips -->
<div class="nuda-ac2-suggest" role="group" aria-label="Suggested prompts">
<button class="nuda-ac2-suggest__chip" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M6 3 L18 3 L18 21 L6 21 Z M9 8 L15 8 M9 12 L15 12 M9 16 L13 16" />
</svg>
<span>Summarize this doc</span>
</button>
<button class="nuda-ac2-suggest__chip" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4 20 L8 16 L18 6 A 1.5 1.5 0 0 1 20 8 L10 18 Z M14 8 L16 10" />
</svg>
<span>Write a haiku</span>
</button>
<button class="nuda-ac2-suggest__chip" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M8 3 L4 7 L8 11 M16 3 L20 7 L16 11 M14 5 L10 19" />
</svg>
<span>Debug my code</span>
</button>
<button class="nuda-ac2-suggest__chip" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 2 L12 6 M4.9 4.9 L7.8 7.8 M2 12 L6 12 M4.9 19.1 L7.8 16.2 M12 22 L12 18 M19.1 19.1 L16.2 16.2 M22 12 L18 12 M19.1 4.9 L16.2 7.8" />
</svg>
<span>Plan a trip</span>
</button>
</div>CSS
.nuda-ac2-suggest {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
width: 300px;
box-sizing: border-box;
}
.nuda-ac2-suggest__chip {
display: flex;
align-items: center;
gap: 8px;
min-height: 44px;
padding: 10px 12px;
background: #141414;
border: 1px solid rgba(255,255,255,.1);
border-radius: 10px;
color: #cfcfcf;
font: 11.5px ui-sans-serif,system-ui,sans-serif;
text-align: left;
cursor: pointer;
animation: _nuda-ac2suggest .4s ease both;
transition: border-color .2s,transform .2s,background .2s;
}
.nuda-ac2-suggest__chip:nth-child(1) {
animation-delay: 0s;
}
.nuda-ac2-suggest__chip:nth-child(2) {
animation-delay: .06s;
}
.nuda-ac2-suggest__chip:nth-child(3) {
animation-delay: .12s;
}
.nuda-ac2-suggest__chip:nth-child(4) {
animation-delay: .18s;
}
.nuda-ac2-suggest__chip svg {
width: 14px;
height: 14px;
flex: none;
color: #e4ff54;
}
.nuda-ac2-suggest__chip:hover {
border-color: rgba(228,255,84,.4);
background: rgba(228,255,84,.06);
transform: translateY(-2px);
}
.nuda-ac2-suggest__chip:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes _nuda-ac2suggest {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.nuda-ac2-suggest__chip {
animation: none !important;
transition: none;
}
}
How to use Suggested Prompt Grid
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.