Layouts used for positioning content inside of pages, cards, or containers.
import React from 'react' import Layout from 'playbook-ui' import Body from 'playbook-ui' const LayoutColor = (props) => { return ( <div> <Layout collapse="md" position="left" size="sm" > <Layout.Side> {'Light'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="md" position="left" size="sm" variant="dark" > <Layout.Side> <Body dark text="Dark" /> </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="md" position="left" size="sm" variant="gradient" > <Layout.Side> <Body dark text="Gradient" /> </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> </div> ) } export default LayoutColor
import React from 'react' import Layout from 'playbook-ui' const LayoutTransparent = (props) => { return ( <div> <Layout collapse="sm" position="left" size="xs" transparent > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> </div> ) } export default LayoutTransparent
import React from 'react' import Layout from 'playbook-ui' const LayoutSizes = (props) => { return ( <div> <Layout collapse="xs" position="left" size="xs" > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="xs" position="left" size="sm" > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="xs" position="left" size="md" > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="xs" position="left" size="lg" > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> <br /> <br /> <Layout collapse="xs" position="left" size="xl" > <Layout.Side> {'Side'} </Layout.Side> <Layout.Body> {'Body'} </Layout.Body> </Layout> </div> ) } export default LayoutSizes
Layout can leverage the max-width property. Learn more in our visual guidelines.
import React from 'react' import Layout from 'playbook-ui' import Card from 'playbook-ui' const LayoutCollection = (props) => { return ( <div> <Layout layout="collection" > <Layout.Body> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> <Card>{'Card content'}</Card> </Layout.Body> </Layout> </div> ) } export default LayoutCollection
The left element on Collection Detail can be used for things such as navigation or secondary content to the element on the right. The right content can be used the same way that you would use Collection. The element on the right should be the primary focus and can be used for repeating elements such as cards.
import React from 'react' import Layout from 'playbook-ui' import Card from 'playbook-ui' import Nav from 'playbook-ui' import NavItem from 'playbook-ui' const Cards = ({ n }) => { const cards = [] for (let i = 0; i < n; ++i) { cards.push(<Card key={i}>{'Card content'}</Card>) } return (cards) } const LayoutCollectionDetail = (props) => { return ( <div> <Layout layout="collection_detail" > <Card padding="none"> { <Nav link="#" marginTop="sm" orientation="vertical" title="Menu" > <NavItem link="#" text="Photos" /> <NavItem link="#" text="Music" /> <NavItem active link="#" text="Video" /> <NavItem link="#" text="Files" /> </Nav> } </Card> <Layout.Body> <Cards n={16} /> </Layout.Body> </Layout> </div> ) } export default LayoutCollectionDetail
import React from 'react' import Avatar from 'playbook-ui' import Caption from 'playbook-ui' import Card from 'playbook-ui' import Flex from 'playbook-ui' import FlexItem from 'playbook-ui' import Icon from 'playbook-ui' import Layout from 'playbook-ui' import MultipleUsers from 'playbook-ui' import Timestamp from 'playbook-ui' import Title from 'playbook-ui' const LayoutKanban = (props) => { return ( <div> <Layout layout="kanban"> <Layout.Body> <Caption>{'Queue'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Design Homepage'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Change Old App Icon'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'In Progress'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Dashboard Updates'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1509868918748-a554ad25f858?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=3159ec467959b2aada4b75d565c270aa" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Usability Testing'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <MultipleUsers paddingLeft="xs" users={[ { name: 'Shawn Palmer', imageUrl: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=74daec1914d1d105202bca8a310a6a71', }, { name: 'Andrew Murray Cooper Craig', imageUrl: 'https://images.unsplash.com/photo-1513732822839-24f03a92f633?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ', }, ]} /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'New Icons'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1502378735452-bc7d86632805?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=aa3a807e1bbdfd4364d1f449eaa96d82" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'Validation'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Build Full Page Example'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Design System Documentation'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Prop Bug'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Discovery Session'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Design Exploration'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1513732822839-24f03a92f633?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Fix Sketch Bugs'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Test Out Figma'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Ship New Feature'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Meet with Client'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Re-engineer Old Modal'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Setup Permissions'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Build Prototype'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Collaborate with Team'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Interview Candidates'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Run Testing Suite'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Live Coding Session'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=707b9c33066bf8808c934c8ab394dff6" name="Michelle Smith" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'All Hands Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Growth Engineering Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'Done'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Re-rendering Bug'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Gather Resources'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'Another Column'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'All Hands Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1544817747-b11e3e3b6ac2?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Growth Engineering Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'Another Column'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'All Hands Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1463453091185-61582044d556?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=73a9df4b7bd1b330db1e903e08575ec1" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Pairing'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> <Layout.Body> <Caption>{'Another Column'}</Caption> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'Design Session'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> <Card padding="sm" shadow="deep" > <Flex orientation="row" spacing="between" > <FlexItem> <Title size="4">{'UX Engineering Meeting'}</Title> </FlexItem> <FlexItem> <Icon icon="ellipsis-h" /> </FlexItem> </Flex> <Flex orientation="row" spacing="between" vertical="bottom" > <FlexItem marginTop="xs"> <Avatar imageUrl="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" name="Roger Donahue" size="sm" /> </FlexItem> <FlexItem> <Flex orientation="row" vertical="center" > <Icon icon="clock" /> <Timestamp text="00:00:00 h" /> </Flex> </FlexItem> </Flex> </Card> </Layout.Body> </Layout> </div> ) } export default LayoutKanban
import React from 'react' import Layout from 'playbook-ui' import Card from 'playbook-ui' const LayoutContent = () => { return ( <div> <Layout layout="content"> <Layout.Header> <Card> {'Header'} </Card> </Layout.Header> <Layout.Side> <Card> {'Sidebar'} <br /> <br /> {'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis.'} </Card> </Layout.Side> <Layout.Body> <Card> {'Body'} <br /> <br /> {'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.'} <br /> <br /> {'Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.'} </Card> </Layout.Body> <Layout.Footer> <Card> {'Footer'} </Card> </Layout.Footer> </Layout> </div> ) } export default LayoutContent
import React from 'react' import Layout from 'playbook-ui' import Image from 'playbook-ui' const LayoutMasonry = (props) => { return ( <Layout layout="masonry" > <Layout.Body> <Layout.Item> <Image url="https://images.unsplash.com/photo-1611932084285-4fc50bfb7102?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwxMnx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item size="md"> <Image url="https://images.unsplash.com/photo-1611934529218-748707e1d066?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2307&q=80" /> </Layout.Item> <Layout.Item> <Image url="https://images.unsplash.com/photo-1611927263897-c2f1156bc760?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyMHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item size="lg"> <Image url="https://images.unsplash.com/photo-1611927263897-c2f1156bc760?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyMHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item> <Image url="https://images.unsplash.com/photo-1606851685679-2a35cfdd62d6?ixid=MXwxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxMXx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item size="md"> <Image url="https://images.unsplash.com/photo-1612092172331-d788286028d5?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw3Mnx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item> <Image url="https://images.unsplash.com/photo-1612123912968-5f6e964e8ea5?ixid=MXwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw0N3x8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item size="md"> <Image url="https://images.unsplash.com/photo-1606851685679-2a35cfdd62d6?ixid=MXwxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxMXx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60" /> </Layout.Item> <Layout.Item> <Image url="https://unsplash.it/500/400/?image=634" /> </Layout.Item> </Layout.Body> </Layout> ) } export default LayoutMasonry