Skip to content

DocsAIWeb search

PT

AI

Web search

Queries that show up one by one and the sources that arrive next.

data-u="ai-search"Demo

Example

Web search

Agent queries and the sources it read, shown live with a timer.

Installation

Web search ships in the full package, along with the skill:

curl -fsSL unslop.leallabs.dev/i | sh

The example HTML, to paste:

curl -fsSL unslop.leallabs.dev/i | sh -s add ai-search

Uses The block is just HTML. The CSS and JS come from the full package's unslop.css and unslop.js.

Classes and variants

ClassWhat it does
.u-ai-searchThe block: __head, __qs with __q, __srcs with .u-ai-src.
.u-ai-search__status[data-state]Status line.

Accessibility and keyboard

State and roles

WhereAttributeWhat it says
.u-ai-card__panelrole="group" and aria-labelSays it's a demo and of what.
statusdata-stateGoes from searching to done.

Keyboard

KeyDoes
Tabenters the card and pauses the animation while focus is there

Motion

Plays on its own when it enters the viewport, for up to 3 cycles, and stops in its final state. Hovering or focusing inside pauses it. With reduced motion, it shows the final state right away.

Events and API

No public events. For a real chat, copy the markup and wire up your own state, without relying on data-u for logic.

Type to search. Arrows pick, Enter opens.