# HAM docs

HAM is the markup Hype Apps are written in. A HAM document names the native components a screen is made of, such as a title bar, a list or a button, and how they nest. The app draws them with the platform's own controls, so nothing you write runs as code on the phone.

Building with an AI agent such as Claude Code? Start with [Build with an AI agent](https://hypeapps.dev/docs/ai-agent.md).

## Guides

- [Your first screen](https://hypeapps.dev/docs/guides/first-screen.md): Build a profile screen from the smallest app, one step at a time: a title bar, a photo, a name, some numbers, a cover, and a Follow button that works.
- [Layout and styling](https://hypeapps.dev/docs/guides/layout.md): Build a boarding pass from the smallest app: a card in two parts, rows and columns inside it, then spacing, alignment, color and type.
- [Navigation](https://hypeapps.dev/docs/guides/navigation.md): Build a recipe app from the smallest app: a bottom bar with three tabs, a side drawer, and a home tab with a photo header and a list of dinners.
- [Forms and state](https://hypeapps.dev/docs/guides/forms.md): Build a bill splitter from the smallest app: a number field, a choice of tip, a people counter, and a total that updates as you type.
- [Lists and loops](https://hypeapps.dev/docs/guides/lists.md): Build a café menu from the smallest app: rows from a table, a live search, filter chips, and a message when nothing matches.
- [Data and databases](https://hypeapps.dev/docs/guides/data.md): Build a to-do list from the smallest app: a table on the phone, a field that adds to it, rows you tick and swipe away, and a count that keeps up.
- [A poll that syncs](https://hypeapps.dev/docs/guides/sync.md): Build a lunch poll from the smallest app: a database on the phone, votes that count, one vote each, and then one attribute that shares it with every phone that has the app.
- [Who's using the app ($me)](https://hypeapps.dev/docs/guides/me.md): Build a guestbook from the smallest app: notes in a table, a name and a color for whoever is holding the phone, every note signed by its writer, and then the whole guestbook shared.
- [Gestures](https://hypeapps.dev/docs/guides/gestures.md): Build a deck of flashcards from the smallest app: cards from a table, a tap that flips them, swipes that sort them, and a score that keeps count.
- [Animations and effects](https://hypeapps.dev/docs/guides/animations.md): Build a 10-second tap game from the smallest app: three screens in one, a countdown, a tap counter, a best score that's remembered, and confetti when time's up.
- [Drawing and media](https://hypeapps.dev/docs/guides/media.md): Build a sketch pad from the smallest app: a canvas, a photo to trace, your own palette of colors, undo and an eraser, and ink that thickens as you slow down.
- [Your own tags](https://hypeapps.dev/docs/guides/own-tags.md): Build a hotel review from the smallest app: a row of stars written once as a tag of your own, used four times, made tappable, wrapped in a card tag with a slot, under a photo header.

## Cookbook

- [A seat picker](https://hypeapps.dev/docs/cookbook/seat-picker.md): A grid of seats from a table, taken ones grayed out, and one you can pick, change and confirm, as on a flight or at a cinema.
- [A cart with quantities](https://hypeapps.dev/docs/cookbook/cart.md): Order lines in a table, a minus and plus on each, a bin when there's one left, and a total the table keeps itself.
- [A chat thread](https://hypeapps.dev/docs/cookbook/chat.md): Messages from a table, yours on the right in the app's color and theirs on the left with an avatar, and a composer that adds to the thread.
- [An hourly forecast](https://hypeapps.dev/docs/cookbook/forecast.md): The weather now in a big card, and the hours ahead as a strip of cards you scroll sideways.
- [Rows the server updates (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-watchlist.md): A list where each row's buttons go to the server and the server sends back that row, changed, from MoviePlz's list of things friends asked you to watch.
- [Pick the right match (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-match.md): After you rename a title, the likeliest matches from a movie database, each with a This one button that the server answers, from MoviePlz.
- [Search on the server (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-search.md): A library with filters and a search box that asks the server as you type, and swaps in only the results, from MoviePlz.

## Reference

Every tag: https://hypeapps.dev/docs/reference.md

- Structure: [app](https://hypeapps.dev/docs/reference/app.md), [app-bar](https://hypeapps.dev/docs/reference/app-bar.md), [drawer-header](https://hypeapps.dev/docs/reference/drawer-header.md), [drawer-left](https://hypeapps.dev/docs/reference/drawer-left.md), [drawer-right](https://hypeapps.dev/docs/reference/drawer-right.md), [list-tile](https://hypeapps.dev/docs/reference/list-tile.md), [main](https://hypeapps.dev/docs/reference/main.md), [navigate](https://hypeapps.dev/docs/reference/navigate.md), [root](https://hypeapps.dev/docs/reference/root.md), [screen](https://hypeapps.dev/docs/reference/screen.md), [update](https://hypeapps.dev/docs/reference/update.md)
- Layout: [address](https://hypeapps.dev/docs/reference/address.md), [aside](https://hypeapps.dev/docs/reference/aside.md), [background](https://hypeapps.dev/docs/reference/background.md), [block](https://hypeapps.dev/docs/reference/block.md), [card](https://hypeapps.dev/docs/reference/card.md), [center](https://hypeapps.dev/docs/reference/center.md), [col](https://hypeapps.dev/docs/reference/col.md), [column](https://hypeapps.dev/docs/reference/column.md), [content](https://hypeapps.dev/docs/reference/content.md), [dismissible](https://hypeapps.dev/docs/reference/dismissible.md), [divider](https://hypeapps.dev/docs/reference/divider.md), [dl](https://hypeapps.dev/docs/reference/dl.md), [figure](https://hypeapps.dev/docs/reference/figure.md), [fixed](https://hypeapps.dev/docs/reference/fixed.md), [flex](https://hypeapps.dev/docs/reference/flex.md), [footer](https://hypeapps.dev/docs/reference/footer.md), [fullscreen](https://hypeapps.dev/docs/reference/fullscreen.md), [grid](https://hypeapps.dev/docs/reference/grid.md), [header](https://hypeapps.dev/docs/reference/header.md), [inline-content](https://hypeapps.dev/docs/reference/inline-content.md), [li](https://hypeapps.dev/docs/reference/li.md), [masonry](https://hypeapps.dev/docs/reference/masonry.md), [nav](https://hypeapps.dev/docs/reference/nav.md), [ol](https://hypeapps.dev/docs/reference/ol.md), [row](https://hypeapps.dev/docs/reference/row.md), [section](https://hypeapps.dev/docs/reference/section.md), [spacer](https://hypeapps.dev/docs/reference/spacer.md), [stack](https://hypeapps.dev/docs/reference/stack.md), [sticky](https://hypeapps.dev/docs/reference/sticky.md), [ul](https://hypeapps.dev/docs/reference/ul.md), [wrap](https://hypeapps.dev/docs/reference/wrap.md), [zoom](https://hypeapps.dev/docs/reference/zoom.md)
- Text: [a](https://hypeapps.dev/docs/reference/a.md), [abbr](https://hypeapps.dev/docs/reference/abbr.md), [b](https://hypeapps.dev/docs/reference/b.md), [blockquote](https://hypeapps.dev/docs/reference/blockquote.md), [br](https://hypeapps.dev/docs/reference/br.md), [code](https://hypeapps.dev/docs/reference/code.md), [dd](https://hypeapps.dev/docs/reference/dd.md), [dt](https://hypeapps.dev/docs/reference/dt.md), [figcaption](https://hypeapps.dev/docs/reference/figcaption.md), [h1](https://hypeapps.dev/docs/reference/h1.md), [h2](https://hypeapps.dev/docs/reference/h2.md), [h3](https://hypeapps.dev/docs/reference/h3.md), [h4](https://hypeapps.dev/docs/reference/h4.md), [h5](https://hypeapps.dev/docs/reference/h5.md), [h6](https://hypeapps.dev/docs/reference/h6.md), [i](https://hypeapps.dev/docs/reference/i.md), [mark](https://hypeapps.dev/docs/reference/mark.md), [markdown](https://hypeapps.dev/docs/reference/markdown.md), [p](https://hypeapps.dev/docs/reference/p.md), [pre](https://hypeapps.dev/docs/reference/pre.md), [s](https://hypeapps.dev/docs/reference/s.md), [small](https://hypeapps.dev/docs/reference/small.md), [span](https://hypeapps.dev/docs/reference/span.md), [sub](https://hypeapps.dev/docs/reference/sub.md), [sup](https://hypeapps.dev/docs/reference/sup.md), [text](https://hypeapps.dev/docs/reference/text.md), [u](https://hypeapps.dev/docs/reference/u.md)
- Display: [ad](https://hypeapps.dev/docs/reference/ad.md), [avatar](https://hypeapps.dev/docs/reference/avatar.md), [badge](https://hypeapps.dev/docs/reference/badge.md), [canvas-tool](https://hypeapps.dev/docs/reference/canvas-tool.md), [caption](https://hypeapps.dev/docs/reference/caption.md), [carousel](https://hypeapps.dev/docs/reference/carousel.md), [chart](https://hypeapps.dev/docs/reference/chart.md), [countdown](https://hypeapps.dev/docs/reference/countdown.md), [empty-state](https://hypeapps.dev/docs/reference/empty-state.md), [feedback](https://hypeapps.dev/docs/reference/feedback.md), [flip-card](https://hypeapps.dev/docs/reference/flip-card.md), [icon](https://hypeapps.dev/docs/reference/icon.md), [indicator](https://hypeapps.dev/docs/reference/indicator.md), [options](https://hypeapps.dev/docs/reference/options.md), [overlay](https://hypeapps.dev/docs/reference/overlay.md), [particles](https://hypeapps.dev/docs/reference/particles.md), [path](https://hypeapps.dev/docs/reference/path.md), [progress-bar](https://hypeapps.dev/docs/reference/progress-bar.md), [progress-ring](https://hypeapps.dev/docs/reference/progress-ring.md), [qr](https://hypeapps.dev/docs/reference/qr.md), [rate-app](https://hypeapps.dev/docs/reference/rate-app.md), [series](https://hypeapps.dev/docs/reference/series.md), [skeleton](https://hypeapps.dev/docs/reference/skeleton.md), [table](https://hypeapps.dev/docs/reference/table.md), [tbody](https://hypeapps.dev/docs/reference/tbody.md), [td](https://hypeapps.dev/docs/reference/td.md), [tfoot](https://hypeapps.dev/docs/reference/tfoot.md), [th](https://hypeapps.dev/docs/reference/th.md), [thead](https://hypeapps.dev/docs/reference/thead.md), [tooltip](https://hypeapps.dev/docs/reference/tooltip.md), [tr](https://hypeapps.dev/docs/reference/tr.md), [water](https://hypeapps.dev/docs/reference/water.md)
- Forms and input: [button](https://hypeapps.dev/docs/reference/button.md), [checkbox](https://hypeapps.dev/docs/reference/checkbox.md), [chip](https://hypeapps.dev/docs/reference/chip.md), [color-picker](https://hypeapps.dev/docs/reference/color-picker.md), [data-cell](https://hypeapps.dev/docs/reference/data-cell.md), [data-column](https://hypeapps.dev/docs/reference/data-column.md), [data-row](https://hypeapps.dev/docs/reference/data-row.md), [data-table](https://hypeapps.dev/docs/reference/data-table.md), [date-picker](https://hypeapps.dev/docs/reference/date-picker.md), [expansion-panel](https://hypeapps.dev/docs/reference/expansion-panel.md), [fab](https://hypeapps.dev/docs/reference/fab.md), [form](https://hypeapps.dev/docs/reference/form.md), [input](https://hypeapps.dev/docs/reference/input.md), [label](https://hypeapps.dev/docs/reference/label.md), [option](https://hypeapps.dev/docs/reference/option.md), [radio](https://hypeapps.dev/docs/reference/radio.md), [radio-group](https://hypeapps.dev/docs/reference/radio-group.md), [range-slider](https://hypeapps.dev/docs/reference/range-slider.md), [search-bar](https://hypeapps.dev/docs/reference/search-bar.md), [segment](https://hypeapps.dev/docs/reference/segment.md), [segmented-button](https://hypeapps.dev/docs/reference/segmented-button.md), [select](https://hypeapps.dev/docs/reference/select.md), [slider](https://hypeapps.dev/docs/reference/slider.md), [step](https://hypeapps.dev/docs/reference/step.md), [stepper](https://hypeapps.dev/docs/reference/stepper.md), [summary](https://hypeapps.dev/docs/reference/summary.md), [switch](https://hypeapps.dev/docs/reference/switch.md), [textarea](https://hypeapps.dev/docs/reference/textarea.md), [time-picker](https://hypeapps.dev/docs/reference/time-picker.md)
- Media: [audio](https://hypeapps.dev/docs/reference/audio.md), [camera](https://hypeapps.dev/docs/reference/camera.md), [canvas](https://hypeapps.dev/docs/reference/canvas.md), [file-picker](https://hypeapps.dev/docs/reference/file-picker.md), [img](https://hypeapps.dev/docs/reference/img.md), [layer](https://hypeapps.dev/docs/reference/layer.md), [lottie](https://hypeapps.dev/docs/reference/lottie.md), [map](https://hypeapps.dev/docs/reference/map.md), [mic](https://hypeapps.dev/docs/reference/mic.md), [pin](https://hypeapps.dev/docs/reference/pin.md), [pixels](https://hypeapps.dev/docs/reference/pixels.md), [scanner](https://hypeapps.dev/docs/reference/scanner.md), [video](https://hypeapps.dev/docs/reference/video.md)
- Data: [attr](https://hypeapps.dev/docs/reference/attr.md), [slot](https://hypeapps.dev/docs/reference/slot.md), [tag](https://hypeapps.dev/docs/reference/tag.md)
- Navigation: [bottom-nav-item](https://hypeapps.dev/docs/reference/bottom-nav-item.md), [bottom-navigation-bar](https://hypeapps.dev/docs/reference/bottom-navigation-bar.md), [nav-item](https://hypeapps.dev/docs/reference/nav-item.md), [navigation-rail](https://hypeapps.dev/docs/reference/navigation-rail.md), [portal](https://hypeapps.dev/docs/reference/portal.md), [rail-item](https://hypeapps.dev/docs/reference/rail-item.md), [tab](https://hypeapps.dev/docs/reference/tab.md), [tab-bar](https://hypeapps.dev/docs/reference/tab-bar.md)
- Overlays: [bottom-sheet](https://hypeapps.dev/docs/reference/bottom-sheet.md), [dialog](https://hypeapps.dev/docs/reference/dialog.md), [dropdown](https://hypeapps.dev/docs/reference/dropdown.md), [menu-item](https://hypeapps.dev/docs/reference/menu-item.md), [popover](https://hypeapps.dev/docs/reference/popover.md), [popup-menu](https://hypeapps.dev/docs/reference/popup-menu.md), [snackbar](https://hypeapps.dev/docs/reference/snackbar.md)
- Metadata: [config](https://hypeapps.dev/docs/reference/config.md), [globals](https://hypeapps.dev/docs/reference/globals.md), [notification](https://hypeapps.dev/docs/reference/notification.md), [shake](https://hypeapps.dev/docs/reference/shake.md), [state](https://hypeapps.dev/docs/reference/state.md), [styles](https://hypeapps.dev/docs/reference/styles.md)

All of HAM in one file: https://hypeapps.dev/llms.txt
