Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 093495b

Browse files
committed
feat(Cards): Add SplashSubText card component
1 parent a71aebb commit 093495b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/cards/CardSplashSubText.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from 'react';
2+
import styled from 'styled-components';
3+
4+
import CardProps from '../utils/CardProps';
5+
6+
export default ({ children }: CardProps) => {
7+
const CardSplashSubText = styled.div`
8+
font-size: 16px;
9+
padding-top: 10px;
10+
`;
11+
return (
12+
<CardSplashSubText>
13+
{children}
14+
</CardSplashSubText>
15+
);
16+
};

src/docs/DocsCards.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import CardBody from '../cards/CardBody';
77
import CardFooter from '../cards/CardFooter';
88
import CardHeader from '../cards/CardHeader';
99
import CardSplashHeader from '../cards/CardSplashHeader';
10+
import CardSplashSubText from '../cards/CardSplashSubText';
1011
import CardSplashText from '../cards/CardSplashText';
1112
import CardTitle from '../cards/CardTitle';
1213
import IconEllipsisV from '../icons/IconEllipsisV';
@@ -87,10 +88,12 @@ export default () => {
8788
</Card>
8889
<Card type={CardType.Highlighted}>
8990
<CardSplashHeader>
91+
<CardHeader />
9092
<IconEllipsisV color={'#fff'}/>
9193
</CardSplashHeader>
9294
<CardSplashText>
9395
<strong>Shared components</strong>
96+
<CardSplashSubText>(0/3) things are cool</CardSplashSubText>
9497
</CardSplashText>
9598
</Card>
9699
<Card type={CardType.Placeholder}>

0 commit comments

Comments
 (0)