CommandTable
A command and what it does.
Preview
sitekit initCreate a sitesitekit checkCheck that it is safe to publishsitekit addRestore a componentsitekit upgradeBring a site up to date
Add to your site
npx docs-sitekit add command-tableIt writes these files, and keeps a file you changed:
src/presentation/components/site/command-table.tsx
It requires nothing else from the registry.
Props
Built from the TypeScript types and the TSDoc comments of the component, so they cannot drift from the code.
| Key | Type | Default | Allowed values | Description |
|---|---|---|---|---|
rows | readonly CommandRow[] | required | - | The commands, in the order shown. |
| Key | Type | Default | Allowed values | Description |
|---|---|---|---|---|
command | string | required | - | The command, in code. |
text | string | required | - | What it does. |
note | string | - | - | More detail, shown from the lg breakpoint up. |
Variants and states
With notes
A note after the text, shown from the lg breakpoint up.
sitekit initCreate a siteWrites only into --dirsitekit checkCheck the buildExits with 1 on an error
About
A list of commands and what each one does, in two columns from the md width and one under it. A row can have a note, which is shown from the lg width.
Accessibility
- It is a list, and each command is a
<code>element, not a control. - The note is hidden under the
lgwidth, so put anything a reader needs intext.
Source
Edit this page
Last updated