Getting Started
AI agents
Point your coding agent at these docs.
The module is easy to use from an AI coding agent: the props, slots and functions carry JSDoc, the slot's data is typed from your request, and this site serves its content in machine-readable form.
llms.txt
| URL | |
|---|---|
/llms.txt | An index of every page with a short description. |
/llms-full.txt | The whole documentation in one Markdown file. |
/raw/docs/<page>.md | Any page as Markdown, e.g. /raw/docs/guide/states.md. |
A prompt that works
Add boneprint to this app (docs: https://kukson777.github.io/boneprint/llms-full.txt).
Wrap the list in <file> in <Skeleton :of="..."> with a sample of typical text length,
add #empty and #error slots, and skip requests inside the slot where useInSkeleton() is true.
The cheat sheet
- Install:
npm install boneprint. Nuxt:modules: ['boneprint/nuxt'], everything auto-imported. Vue:import { Skeleton } from 'boneprint', orapp.use(boneprint, options). - Wrap:
<Skeleton :of="request" :sample>with#default="{ data }",#emptyand#error="{ error }".requestis auseFetch,useAsyncDataor TanStack Query result. - By hand:
:data,:loading,:empty,:errorinstead of or on top of:of. - Sample: mirrors the response, with text of typical length. It only draws the first visit, after that the remembered shape is used.
- Memory: kept per
id. Set one on a skeleton inside tabs or anything else that remounts;forgetSkeletons()on sign-out. - Slot runs twice: once measured, once as content. Fetch outside
<Skeleton>, or skip it whereuseInSkeleton()istrue. - Steer:
data-skeleton-block(one block),data-skeleton-skip(left out),#skeletonslot with<SkeletonBox>for charts and canvases. - Style:
--skeleton-*CSS variables, see Theming.