Skip to content

Commit

Permalink
make doc cuter
Browse files Browse the repository at this point in the history
  • Loading branch information
markdoeswork committed Oct 30, 2024
1 parent a0acb2e commit 1bd39af
Showing 1 changed file with 35 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import React from 'react'

import {
Body,
Card
Card,
Flex,
FlexItem,
Icon,
User
} from 'playbook-ui'

import Example from '../Templates/Example'
Expand All @@ -22,20 +26,36 @@ const GroupHover = ({ example }: {example: string}) => (
example={example}
title="Group Hover"
>
<Card groupHover>
<Body
groupHover
hover={{ scale: "lg"}}
text="If the card is hovered, I'm hovered too!"
/>
<Body
paddingY="lg"
text="I don't have any hover effect on me"
/>
<Body
hover={{ scale: "lg"}}
text="I need to be hovered over directly"
/>
<Card>
<Flex justify="between">
<User
align="left"
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
name="Anna Black"
orientation="horizontal"
title="Remodeling Consultant"
/>
<Card
padding="xs"
borderNone
borderRadius="rounded"
hover={{ background: "success_subtle" }}
>
<Flex>
<FlexItem alignSelf="center">
More Info
</FlexItem>
<FlexItem alignSelf="center">
<Icon
fixedWidth
icon="arrow-right"
pull="right"
size="2x"
/>
</FlexItem>
</Flex>
</Card>
</Flex>
</Card>
</Example>
)
Expand Down

0 comments on commit 1bd39af

Please sign in to comment.