Ir al contenido

FeatureList

Lo que incluye un plan o un producto, una línea cada cosa, con un chulo. Lo que no incluye se dice en palabras, no solo se dibuja distinto.

import { FeatureList, FeatureListSkeleton } from '@sypnia/ui/react'

En esta página
  1. Incluido y no incluido
  2. Dos columnas
  3. En Astro
  4. Skeleton
  5. Cuándo usarlo
  6. Para todos
  7. Props

Incluido y no incluido

  • Errors and session replays
  • Uptime checks every minute
  • Fixes written by the agent20 a month, then $0.50 each
  • No incluido: Single sign-on
Código
import { FeatureList, FeatureListSkeleton } from '@sypnia/ui/react';

// What is not included is said in words, not only drawn differently.
export default function Included() {
  return (
    <div className="sy-cols sy-cols--stack">
      <FeatureList items={['Errors and session replays', 'Uptime checks every minute', { text: 'Fixes written by the agent', hint: '20 a month, then $0.50 each' }, { text: 'Single sign-on', included: false }]} />
      <FeatureListSkeleton items={4} />
    </div>
  );
}

Dos columnas

  • Postgres database
  • Storage for files
  • Sign-in with email and Google
  • Backups every night
  • Logs for 30 days
  • Your own domain
Código
import { FeatureList } from '@sypnia/ui/react';

// Two columns on wide screens; one on phones.
export default function Columns() {
  return <FeatureList columns={2} items={['Postgres database', 'Storage for files', 'Sign-in with email and Google', 'Backups every night', 'Logs for 30 days', 'Your own domain']} />;
}

En Astro

  • Free and open source (MIT)
  • Runs on your servers
  • No incluido: Managed backupsOnly in Sypnia Cloud
Código
---
// The Astro twin.
import FeatureList from '@sypnia/ui/astro/FeatureList.astro';
---
<FeatureList items={['Free and open source (MIT)', 'Runs on your servers', { text: 'Managed backups', included: false, hint: 'Only in Sypnia Cloud' }]} />

Skeleton

  • 1 project
  • 7 days of history
  • 50,000 events a month
Código
import { FeatureList, FeatureListSkeleton } from '@sypnia/ui/react';

// The list and its skeleton.
export default function Skeleton() {
  return (
    <div className="sy-cols sy-cols--stack">
      <FeatureList items={['1 project', '7 days of history', '50,000 events a month']} />
      <FeatureListSkeleton items={3} />
    </div>
  );
}

Cuándo usarlo

Úsalo cuando

  • Dentro de una PlanCard, en la página de un producto.

No lo uses cuando

  • Pasos por hacer: usa Checklist.

Para todos

  • Las líneas no incluidas empiezan con «No incluido» para lectores de pantalla.

Props

FeatureListTipoPor defecto
itemsobligatorio FeatureItem[]
columns 1 | 2 1
FeatureListSkeletonTipoPor defecto
columns 1 | 2 1
items number 5
  1. Incluido y no incluido
  2. Dos columnas
  3. En Astro
  4. Skeleton
  5. Cuándo usarlo
  6. Para todos
  7. Props

    Busca páginas, secciones y términos