The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/Card/Card.stories.js

84 lines
2.3 KiB

import React from 'react';
import { Box, Button, ButtonGroup } from '@rocket.chat/fuselage';
import Card from './Card';
export default {
title: 'components/basic/Card',
component: Card,
};
export const Single = () => <Box p='x40'>
<Card>
<Card.Title>A card</Card.Title>
<Card.Body>
<Card.Col>
<Box>
<Card.Col.Title>A Section</Card.Col.Title>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
</Box>
<Box>
<Card.Col.Title>Another Section</Card.Col.Title>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
</Box>
</Card.Col>
</Card.Body>
<Card.Footer>
<ButtonGroup align='end'>
<Button small>I'm a button in a footer</Button>
</ButtonGroup>
</Card.Footer>
</Card>
</Box>;
export const Double = () => <Box p='x40'>
<Card>
<Card.Title>A card</Card.Title>
<Card.Body>
<Card.Col>
<Box>
<Card.Col.Title>A Section</Card.Col.Title>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
</Box>
<Box>
<Card.Col.Title>Another Section</Card.Col.Title>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
</Box>
</Card.Col>
<Card.Divider />
<Card.Col>
<Box>
<Card.Col.Title>A Section</Card.Col.Title>
<Box display='flex' flexDirection='row' alignItems='center'><Card.Icon name='document-eye'/>A bunch of stuff</Box>
<Box display='flex' flexDirection='row' alignItems='center'><Card.Icon name='pencil'/>A bunch of stuff</Box>
<Box display='flex' flexDirection='row' alignItems='center'><Card.Icon name='cross'/>A bunch of stuff</Box>
<Box display='flex' flexDirection='row' alignItems='center'><Card.Icon name='num-pad'/>A bunch of stuff</Box>
</Box>
<Box>
<Card.Col.Title>Another Section</Card.Col.Title>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
<div>A bunch of stuff</div>
</Box>
</Card.Col>
</Card.Body>
<Card.Footer>
<ButtonGroup align='end'>
<Button small>I'm a button in a footer</Button>
</ButtonGroup>
</Card.Footer>
</Card>
</Box>;