Components / Content
FeatureGrid
Feature cells in a hairline grid. comfortable is the marketing size, with bullet points and whole-cell links; compact is the console size, numbered on a rounded surface.
Extracted fromMarketing siteExplorer
Import
tsx
import { FeatureGrid } from "@somnia-chain/ui"
// in a Next.js app, internal links use next/link:
import { FeatureGrid } from "@somnia-chain/ui/next"Examples
Comfortable
01
02One engine
Spot, perpetual and event markets share one matching engine and one liquidity root.
- Onchain order books
- Shared liquidity
One SDK
Create a venue, list markets and route orders with the same client.
Learn more 03Receipts
Every fill, oracle answer and agent call is verifiable onchain.
Learn moreexamples/feature-grid/comfortable.tsxShow codeHide code
tsx
import { FeatureGrid } from "@somnia-chain/ui"
export default function FeatureGridComfortable() {
return (
<FeatureGrid
numbered
items={[
{
title: "One engine",
body: "Spot, perpetual and event markets share one matching engine and one liquidity root.",
points: ["Onchain order books", "Shared liquidity"],
},
{
title: "One SDK",
body: "Create a venue, list markets and route orders with the same client.",
href: "#",
},
{
title: "Receipts",
body: "Every fill, oracle answer and agent call is verifiable onchain.",
href: "https://docs.somnia.network",
},
]}
/>
)
}Compact
01
Shielded pools
Deposit into a shared pool, then transact privately.
02
Proofs
Withdraw with a zero-knowledge proof of membership.
03
Compliance
Association sets keep illicit funds out of the pool.
04
Any venue
Venues settle private balances like any other.
examples/feature-grid/compact.tsxShow codeHide code
tsx
import { FeatureGrid } from "@somnia-chain/ui"
export default function FeatureGridCompact() {
return (
<FeatureGrid
density="compact"
cols={4}
items={[
{ title: "Shielded pools", body: "Deposit into a shared pool, then transact privately." },
{ title: "Proofs", body: "Withdraw with a zero-knowledge proof of membership." },
{ title: "Compliance", body: "Association sets keep illicit funds out of the pool." },
{ title: "Any venue", body: "Venues settle private balances like any other." },
]}
/>
)
}Props
FeatureGrid