Loading...
Loading...
Use when a project has a components.json from marko-ui, or when installing, using, editing, or debugging marko-ui components (shadcn-style components for Marko 6 backed by Zag.js) — finding a component, reading its API, adding it with the marko-ui CLI, fixing a component that renders but misbehaves, or setting marko-ui up in a new project. Not for general Marko 6 syntax (see marko6) or routing (see marko-run).
npx skill4agent add svallory/marko-ui marko-uimarko-uibunx marko-uinpx marko-uipnpm dlx marko-uiinitadddistributioncomponents.jsoncopy | | |
|---|---|---|
| Components live in | the project, under the | |
| Get a component | | nothing to add — import |
| Customize | edit the component file (it is the project's code) | override |
components.jsonmarko-ui init--agentsmarko-ui search -q <query>--jsonAGENTS.mdmarko-ui docs <name>marko-ui docs --listmarko-ui show <name>--files--depsmarko-ui add <name> -y--dry-run--overwritemarko-ui diff <name>marko-ui doctor --jsoninitaddmarko-ui agents syncAGENTS.mdmarko-ui manifestimport Dialog from "../components/ui/dialog/dialog.marko";
import Button from "../components/ui/button/button.marko";
<let/open=false/>
<Dialog open:=open>
<@trigger|props|>
<Button ...props>Edit profile</Button>
</@trigger>
<@title>Edit profile</@title>
<@description>Make changes to your profile here.</@description>
<p>Form fields go here.</p>
</Dialog><@trigger><@title>marko-ui docs <name><@trigger|props|>asChild:=open:=openvalue:=valuechecked:=checkedxChangeopen=open openChange=(v) => { open = v }addmarko.jsonmarko.json<Button><CardHeader>InputTextInputopen=value=checked=openChangevalueChangecheckedChange:=defaultOpen=defaultValue=defaultChecked=aria-*data-*truearia-selected=(bool)aria-selected=""data-active=(bool)data-[active=true]:String(...)apiparentApi=() => api()api()api()TypeError: ... is not a functionlayer(components)@custom-variant style-<name>tailwind.csscomponents.json@tailwindcss/vitemarko-ui init"Cannot find module @zag-js/..."marko-zagmarko-ui addmarko-ui show <name> --deps<let><const><for>marko6@marko/runmarko-run.markostatic const styles = { ... }<zag/api=() => machine from=input/>inputapimarko-ui diff <name>/docs/components/<name>.md