mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 09:01:19 +00:00
33 lines
892 B
TypeScript
33 lines
892 B
TypeScript
|
|
import { View } from "react-native"
|
||
|
|
import tw from "twrnc"
|
||
|
|
|
||
|
|
import { Button } from "./button"
|
||
|
|
import { FeedCard } from "./feed-card"
|
||
|
|
import { SansSerifText } from "./sans-serif-text"
|
||
|
|
import { SerifText } from "./serif-text"
|
||
|
|
import { type Showcase, Section } from "../showcase"
|
||
|
|
|
||
|
|
function FeedCardShowcase() {
|
||
|
|
return (
|
||
|
|
<View style={tw`gap-6`}>
|
||
|
|
<Section title="Default">
|
||
|
|
<FeedCard style={tw`p-4`}>
|
||
|
|
<SansSerifText>Card content goes here</SansSerifText>
|
||
|
|
</FeedCard>
|
||
|
|
</Section>
|
||
|
|
<Section title="With mixed content">
|
||
|
|
<FeedCard style={tw`p-4 gap-2`}>
|
||
|
|
<SerifText style={tw`text-xl`}>Title</SerifText>
|
||
|
|
<SansSerifText>Body text inside a feed card.</SansSerifText>
|
||
|
|
<Button style={tw`self-start mt-2`} label="Action" />
|
||
|
|
</FeedCard>
|
||
|
|
</Section>
|
||
|
|
</View>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
|
||
|
|
export const feedCardShowcase: Showcase = {
|
||
|
|
title: "FeedCard",
|
||
|
|
component: FeedCardShowcase,
|
||
|
|
}
|