1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografía typographylistux

Custom List Markers

Lista ordenada con marcadores geométricos minimalistas en lugar de viñetas estándar.

Vista Previa en Vivo

    Custom List Markers

Uso

Copia y pega este código directamente en tu página de Astro:

astro
---
import { CustomListMarkers } from 'astro-component-kit';
---

<MinimalListMarkers>Content</MinimalListMarkers>
--- import { CustomListMarkers } from 'astro-component-kit'; --- <MinimalListMarkers>Content</MinimalListMarkers>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/lib/CustomListMarkers.astro:

astro
---
---
<ul class="custom-list">
  <slot />
</ul>
<style>
  .custom-list { list-style: none; padding: 0; }
  .custom-list :global(li) { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; color: #94a3b8; font-size: 1rem; line-height: 1.5; }
  .custom-list :global(li::before) { content: "→"; position: absolute; left: 0; color: #6366f1; font-weight: 900; }
</style>
--- --- <ul class="custom-list"> <slot /> </ul> <style> .custom-list { list-style: none; padding: 0; } .custom-list :global(li) { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; color: #94a3b8; font-size: 1rem; line-height: 1.5; } .custom-list :global(li::before) { content: "→"; position: absolute; left: 0; color: #6366f1; font-weight: 900; } </style>

Información Rápida

Categoría
Tipografía
Nombre de archivo
CustomListMarkers.astro
Dependencias
Ninguna — Astro nativo + CSS puro
Etiquetas
typographylistux