FeatureList
What a plan or a product includes, one line each, with a check. What it does not include is said in words, not only drawn differently.
import { FeatureList, FeatureListSkeleton } from '@sypnia/ui/react'
Included and not
- Errors and session replays
- Uptime checks every minute
- Fixes written by the agent20 a month, then $0.50 each
- Not included: Single sign-on
Code
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>
);
} Two columns
- Postgres database
- Storage for files
- Sign-in with email and Google
- Backups every night
- Logs for 30 days
- Your own domain
Code
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']} />;
} In Astro
- Free and open source (MIT)
- Runs on your servers
- Not included: Managed backupsOnly in Sypnia Cloud
Code
---
// 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
Code
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>
);
} When to use it
Use it when
- Inside a PlanCard, on a product page.
Do not use it when
- Steps to do: use Checklist.
For everyone
- Lines that are not included start with «Not included» for screen readers.
Props
| FeatureList | Type | Default |
|---|---|---|
itemsrequired | FeatureItem[] | |
columns | 1 | 2 | 1 |
| FeatureListSkeleton | Type | Default |
|---|---|---|
columns | 1 | 2 | 1 |
items | number | 5 |