Ir al contenido

FeatureGrid

Lo que hace un producto, como una lista con líneas: un icono, un nombre con la voz y una o dos frases cada uno, en dos o tres columnas.

import { FeatureGrid, FeatureGridSkeleton } from '@sypnia/ui/react'

En esta página
  1. Tres funciones, y cargando
  2. Pequeña, para los datos clave bajo el hero
  3. Cuándo usarlo
  4. Para todos
  5. Props

Tres funciones, y cargando

  • Traces

    The path of one request through your services, step by step.

  • Replays

    What the person saw before it failed, without their data.

  • An agent that fixes

    It reads the trace, writes the fix and opens a pull request.

    On Cloud

Código
import { FeatureGrid, FeatureGridSkeleton } from '@sypnia/ui/react';

export default function Features() {
  return (
    <div className="sy-stack" style={{ '--gap': 'var(--s-6)' } as React.CSSProperties}>
      <FeatureGrid label="What it does" items={[
        { icon: 'traces', title: 'Traces', text: 'The path of one request through your services, step by step.', href: '#' },
        { icon: 'replay', title: 'Replays', text: 'What the person saw before it failed, without their data.', href: '#' },
        { icon: 'agent', title: 'An agent that fixes', text: 'It reads the trace, writes the fix and opens a pull request.', meta: 'On Cloud' },
      ]} />
      <FeatureGridSkeleton items={3} />
    </div>
  );
}

Pequeña, para los datos clave bajo el hero

El icono va junto al nombre, y el nombre va con la letra de la interfaz: cuatro datos caben en una fila corta.

  • Open source

    Engine in Rust, built in the open.

  • Free to self-host

    One template. Your data stays yours.

  • Cloud from $10 a month

    With a free tier to start.

  • Web, Node, any backend

    Our SDKs, plus OpenTelemetry for the rest.

Código
import { FeatureGrid, FeatureGridSkeleton } from '@sypnia/ui/react';

export default function Facts() {
  return (
    <div className="sy-stack" style={{ '--gap': 'var(--s-6)' } as React.CSSProperties}>
      <FeatureGrid size="sm" columns={4} label="Key facts" items={[
        { icon: 'open-source', title: 'Open source', text: 'Engine in Rust, built in the open.' },
        { icon: 'self-host', title: 'Free to self-host', text: 'One template. Your data stays yours.' },
        { icon: 'cloud', title: 'Cloud from $10 a month', text: 'With a free tier to start.' },
        { icon: 'sdk', title: 'Web, Node, any backend', text: 'Our SDKs, plus OpenTelemetry for the rest.' },
      ]} />
      <FeatureGridSkeleton size="sm" columns={4} items={4} />
    </div>
  );
}

Cuándo usarlo

Úsalo cuando

  • El medio de una página de producto: lo que hace, en sus propias palabras.
  • Pequeña (size sm): los datos clave en la fila bajo el hero, para que quepan en la primera pantalla.

No lo uses cuando

  • Más de nueve: agrúpalas, o enlaza a la documentación.
  • Cajas y sombras: basta con una línea encima de cada una.

Para todos

  • Una lista; todo el elemento es el enlace cuando tiene uno, y el anillo de foco lo rodea.

Props

FeatureGridTipoPor defecto
itemsobligatorio Feature[]
columns 2 | 3 | 4 3
label string
size

`sm`: the key facts under a hero, short and in a row: the icon beside a name in the interface face.

"sm" | "md" md
FeatureGridSkeletonTipoPor defecto
columns 2 | 3 | 4 3
items number 3
size "sm" | "md" md
  1. Tres funciones, y cargando
  2. Pequeña, para los datos clave bajo el hero
  3. Cuándo usarlo
  4. Para todos
  5. Props

    Busca páginas, secciones y términos