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
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
| Announcement | Type | Default |
|---|---|---|
actionrequired | string | |
hrefrequired | string |