Cli
One command to type, with its copy button and, if it helps, what it prints.
import Cli from '@sypnia/ui/astro/Cli.astro'
A command and its output
orders 1,240 rows customers 312 rows
Code
---
import Cli from '@sypnia/ui/astro/Cli.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<Cli command="sypnia tables list">
<Fragment slot="output">orders 1,240 rows
customers 312 rows</Fragment>
</Cli>
</div> When to use it
Use it when
- Any command the reader runs.
Do not use it when
- Installing a package: that is PackageTabs.
For everyone
- The copy button has a name and announces «Copied».