FeatureSplit
Feature rows that alternate text and media, for explaining a product in more depth than a grid allows.
Status: beta. Category: Blocks.
import { FeatureSplit } from '@glyphui/blocks'
Exports: FeatureSplit.
FeatureSplit props
| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly FeatureSplitItem[] | ||
animate | boolean | true | Entrance animations as the block scrolls into view. They follow the theme's motion level and the visitor's reduced-motion setting; false turns them off for this block. Default true. |
description | ReactNode | ||
eyebrow | ReactNode | ||
headingLevel | HeadingLevel | 2 | |
mediaFirst | boolean | false | Put media on the left for the first row. Rows alternate after that. |
title | ReactNode |
Example: Alternating rows
import { FeatureSplit } from '@glyphui/blocks'
import { Button, Card, Text } from '@glyphui/ui'
function Mock({ label }: { label: string }) {
return (
<Card variant="ghost" className="aspect-[4/3] items-center justify-center">
<Text size="small" tone="faint">
{label}
</Text>
</Card>
)
}
export default function Example() {
return (
<FeatureSplit
items={[
{
eyebrow: 'Collect',
title: 'Usage data in, invoices out',
description:
'Send events from your app and Ledgerline meters them against each customer’s plan.',
points: [
'Idempotent event API',
'Backfill from your warehouse',
'Real-time usage dashboards',
],
media: <Mock label="Usage chart" />,
},
{
eyebrow: 'Recover',
title: 'Late payments, handled',
description: 'Dunning emails, card updaters and payment links run on their own.',
actions: <Button variant="outline">See the dunning flow</Button>,
media: <Mock label="Dunning timeline" />,
},
]}
/>
)
}
Live page: https://glyphui.xyz/components/feature-split