AgentInstall
El mismo trabajo, en manos de un agente de código: una instrucción para copiar y pegar en él.
import AgentInstall from '@sypnia/ui/astro/AgentInstall.astro'
En esta página
Una instrucción
Con un agente de código
Install @sypnia/ui in this project. Import '@sypnia/ui/css' once in the root layout, wrap the app in SypniaProvider with the user's language, and replace our own Button and Dialog with the library's.
Código
---
import AgentInstall from '@sypnia/ui/astro/AgentInstall.astro';
---
<AgentInstall prompt="Install @sypnia/ui in this project. Import '@sypnia/ui/css' once in the root layout, wrap the app in SypniaProvider with the user's language, and replace our own Button and Dialog with the library's." /> Cuándo usarlo
Úsalo cuando
- Junto a una instalación o una migración que un agente puede hacer por quien lee.
No lo uses cuando
- En lugar de los pasos: da siempre los dos.
Para todos
- La instrucción es texto simple; el botón de copiar tiene nombre.