Skip to content

Announcement

One line of news at the top of a landing, leading to where it is told.

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

On this page
  1. Two announcements
  2. When to use it
  3. For everyone
  4. Props

Two announcements

Code
import { Announcement } from '@sypnia/ui/react';

export default function News() {
  return (
    <div className="sy-stack" style={{ '--gap': 'var(--s-3)', justifyItems: 'start' } as React.CSSProperties}>
      <Announcement href="#" action="Read">Data 1.4: add 500 rows in one call</Announcement>
      <Announcement href="#" action="See it">Replays now hide every field by default</Announcement>
    </div>
  );
}

When to use it

Use it when

  • Something that shipped and is worth a visit.

Do not use it when

  • Something that has not shipped yet.
  • More than one at a time on a page.

For everyone

  • It is one link with its full text as its name.

Props

AnnouncementTypeDefault
actionrequired string
hrefrequired string
  1. Two announcements
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms