List
Un componente para renderizar listas estructuradas de datos.
Cuándo usar
- Se puede usar una lista para mostrar contenido relacionado con un solo tema. El contenido puede consistir en múltiples elementos de diferentes tipos y tamaños.
Uso
- JDJohn DoeSoftware Engineer
- JSJane SmithProduct Manager
astro
<List bordered divided>
<ListItem>
<Avatar fallback="JD" shape="circle" />
<ListItemMeta title="John Doe" description="Software Engineer" />
<Button slot="extra" variant="outline" size="sm">Follow</Button>
</ListItem>
<ListItem>
<Avatar fallback="JS" shape="circle" />
<ListItemMeta title="Jane Smith" description="Product Manager" />
<Button slot="extra" variant="outline" size="sm">Follow</Button>
</ListItem>
</List> Referencia de la API
| Propiedad | Descripción | Tipo | Por defecto |
|---|---|---|---|
| bordered | Whether to show a border around the list. | boolean | false |
| divided | Whether to show borders between items. | boolean | false |