Component reference
This reference distinguishes HTML attributes, JavaScript properties, native events and CSS parts for each registered element. Attributes contain strings or boolean presence; object values belong in properties after registration. Common words overrides and inherited lang apply to all visual elements. A part name identifies a supported styling surface, not a public DOM selector or an application state API.
mosaicary-catalog
The composed catalogue creates a responsive arrangement of the standard blocks. Its catalogue name can connect external blocks, while an omitted name is unique. selected forwards to its cards. Selection and catalogue failures bubble from nested elements; listed child styling parts are forwarded through exportparts.
HTML | catalogue, kinds, size, origin, selected, lang, accent, surface, from |
|---|---|
JavaScript | selected, words |
DOM | mosaicary-pick, mosaicary-error |
CSS ::part | banner, top, body, main, side, open-filters; exportparts |
mosaicary-tabs
The shelf selector changes the shared store’s current kind. It offers only configured kinds, with built-in labels including Builds. It does not emit a selection event for a resource: subscribe to the store’s filters event when observing a changed shelf outside the component.
HTML | catalogue, kinds, size, origin, lang |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | scopes, scope, icon |
mosaicary-search
The search block updates the query of the named store. Its input is exposed as search-input inside hunt. Place it independently of the cards while keeping the same catalogue name. Language or label updates change its presentation without requiring a separate application search service.
HTML | catalogue, kinds, size, origin, lang |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | hunt, icon, search-input |
mosaicary-filters
groups selects comma-separated filter sections and bare removes the heading and count. Available sections depend on the current shelf. Tags support searchable selection of at most ten values and any/all matching; model and build suggestions come from loaded results rather than a complete remote tag index.
HTML | catalogue, kinds, size, origin, groups, bare, lang |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | filters, filters-top, found, icon-button, group, group-title, group-value, group-body, filter-arms, filter-format, filter-animations, filter-category, filter-order, filter-tags, scopes, scope, pick-list, select, tag-picker, tag-summary, tag-options, tag-field, tag-search, tag-option, tag-checkbox, tag-name, tag-count, tag-empty, tag-mode, icon |
mosaicary-cards
The list loads pages as its end approaches the viewport. selected can be set as an attribute or property; a successful cancelable pick updates it. mosaicary-error exposes structured catalogue failures. Error text and its retry control have separate parts, allowing the host to restyle recovery without replacing pagination.
HTML | catalogue, kinds, size, origin, selected, lang |
|---|---|
JavaScript | selected, words |
DOM | mosaicary-pick, mosaicary-error |
CSS ::part | cards, card, card-selected, card-top, card-name, card-said, card-figure, card-marks, card-get, card-foot, model, model-picture, model-none, mark, likes, icon, say, say-text, retry |
mosaicary-found
The count block reads the shared store’s total. Before a total is known it remains empty; it does not independently fetch or count resources. Use the same catalogue name as the other blocks. Its host text is styled through inherited variables rather than a dedicated inner part.
HTML | catalogue, kinds, size, origin, lang |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | — |
mosaicary-credit
The credit block is the Mosaicary link as words, for an interface where the banner does not fit. Either one satisfies the link required by the API conditions; individual cards need no credit of their own. Its credit part allows visual adaptation while keeping the link visible.
HTML | lang |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | credit |
mosaicary-card
Assign item to render one resource outside an automatically paginated list. The element detects resource kind from that object and emits cancelable mosaicary-pick. It does not manage list selection or pagination and has no selected property. Resource metadata and attribution are retained by the supplied card renderer.
HTML | lang |
|---|---|
JavaScript | item, words |
DOM | mosaicary-pick |
CSS ::part | card, card-top, card-name, card-said, card-figure, card-marks, card-get, card-foot, model, model-picture, model-none, mark, likes, icon |
mosaicary-skin-preview
This fixed skin figure accepts src and optional arms, or a Skin through the skin setter. sheet exposes decoded information once available; mosaicary-read announces it. The preview is distinct from the interactive WebGL skin viewer and does not provide its animation controls or camera.
HTML | src, arms, lang |
|---|---|
JavaScript | skin, sheet, words |
DOM | mosaicary-read |
CSS ::part | card-figure, card-marks, model-picture, mark, icon |
mosaicary-skin
The interactive skin viewer adds initial clip and still settings to file and arm selection. mosaicary-read carries the decoded sheet; assigning skin is the API-object shortcut. Set a host height or a stage ratio as documented. There is no catalogue-style error event on this element.
HTML | src, arms, clip, still, lang |
|---|---|
JavaScript | skin, sheet, words |
DOM | mosaicary-read |
CSS ::part | body, main, stage, tools, tool, icon, hint, note, wait |
mosaicary-build
The build viewer accepts a file address or a Build object. blocks addresses the game asset directory, while blockFiles provides a custom loader and can be shared across viewers. build and blockFiles can be assigned but not read back. Without assets, only an available Axiom thumbnail can serve as a visual fallback.
HTML | src, blocks, lang |
|---|---|
JavaScript | build, blockFiles, words |
DOM | — |
CSS ::part | body, main, stage, tools, tool, icon, hint, wait, picture |
mosaicary-build-converter
take(file) reads a local Blob and optional filename; assigning build offers an API resource. mosaicary-convert reports bytes after saving starts. The element does not emit mosaicary-error for conversion failures and does not expose a selected-input event; connect an external file chooser when several components must share an input.
HTML | lang, origin |
|---|---|
JavaScript | build, words, take(file) |
DOM | mosaicary-convert |
CSS ::part | drop, choose, file-input, about, formats, format, say, icon |
mosaicary-banner
The Mosaicary banner: a wall of skin faces with the site’s head, its name, a line about it and its address, laid out anew for whatever box it is given, down to the head alone. It is one link to the site’s skins in the reader’s language; from adds ?from= so visitors from an application without a referrer can be told apart, and origin selects another deployment. Without a height it takes --mosaicary-banner-ratio (8:1) of its width. It is light or dark as the page behind it; --mosaicary-banner-ground, -name, -line and -address set its colours. It satisfies the link required by the API conditions.
HTML | lang, origin, from |
|---|---|
JavaScript | words |
DOM | — |
CSS ::part | banner, wall, veil, glow, content, icon, words, name, small, line, address |