Skip to content

Points

Sentences listed with rules, each opened by a ring of light: what a product does, what a section promises.

import { Points } from '@sypnia/ui/react'

On this page
  1. What a product does
  2. When to use it
  3. For everyone
  4. Props

What a product does

  • It serves your pages and runs your cases.
  • Every branch has its preview at pr-15.laespiga.sypnia.app.
  • Rolling back takes two seconds: only a pointer moves.
Code
import { InlineCode, Points, useSypnia } from '@sypnia/ui/react';

export default function List() {
  const es = useSypnia().locale === 'es';
  return (
    <Points label={es ? 'Lo que hace Run' : 'What Run does'} items={es
      ? ['Sirve tus páginas y ejecuta tus casos.', <>Cada rama tiene su vista previa en <InlineCode>pr-15.laespiga.sypnia.app</InlineCode>.</>, 'Volver atrás toma dos segundos: solo se mueve un puntero.']
      : ['It serves your pages and runs your cases.', <>Every branch has its preview at <InlineCode>pr-15.laespiga.sypnia.app</InlineCode>.</>, 'Rolling back takes two seconds: only a pointer moves.']} />
  );
}

When to use it

Use it when

  • The points of a band on a landing.
  • Short promises beside a sample.

Do not use it when

  • What a plan includes or not: use FeatureList, with its checks.
  • Facts with a name and a value: use Ledger.

For everyone

  • A list with a name when there is more than one on the page.
  • The ring is decoration; each sentence stands on its own.

Props

PointsTypeDefault
itemsrequired ReactNode[]
columns 1 | 2 1
label string
  1. What a product does
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms