mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
5976d9dcd4
* docs: document src prop on Icon component * Update snippets/icons-required.mdx --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
<Info>
|
|
Debes proporcionar `icon` o `src`.
|
|
</Info>
|
|
|
|
<ResponseField name="icon" type="string">
|
|
El icono que se mostrará desde una biblioteca de iconos.
|
|
|
|
Options:
|
|
|
|
* [Font Awesome icon](https://fontawesome.com/icons) name, if you have the `icons.library` [property](/es/organize/settings#param-icons) set to `fontawesome` in your `docs.json`
|
|
* [Lucide icon](https://lucide.dev/icons) name, if you have the `icons.library` [property](/es/organize/settings#param-icons) set to `lucide` in your `docs.json`
|
|
* Nombre del [icono Tabler](https://tabler.io/icons), si tienes la `icons.library` [propiedad](/es/organize/settings#param-icons) configurada como `tabler` en tu `docs.json`
|
|
</ResponseField>
|
|
|
|
<ResponseField name="src" type="string">
|
|
Ruta o URL de una imagen para usar como icono. Usa `src` en lugar de `icon` cuando quieras utilizar una imagen personalizada en lugar de un icono de una biblioteca.
|
|
|
|
Options:
|
|
|
|
* Ruta a un archivo de imagen en tu proyecto (por ejemplo, `/images/mi-icono.svg`)
|
|
* URL de una imagen alojada externamente (por ejemplo, `https://example.com/icon.png`)
|
|
</ResponseField>
|
|
|
|
<ResponseField name="iconType" type="string">
|
|
The [Font Awesome](https://fontawesome.com/icons) icon style. Only used with Font Awesome icons.
|
|
|
|
Options: `regular`, `solid`, `light`, `thin`, `sharp-solid`, `duotone`, `brands`.
|
|
</ResponseField>
|