@@ -10,7 +10,8 @@ import {
1010 CardLeadIn ,
1111 CardSubheading ,
1212} from '.'
13- import { Button , IconButton , Row , Svg , Text } from '../'
13+ import { Button , IconButton , Svg , Text } from '../'
14+ import { Inline } from '../Inline'
1415
1516export default {
1617 title : 'Components/Card' ,
@@ -44,7 +45,7 @@ export const Default: Story = () => {
4445 */
4546export const Classic : Story = ( ) => {
4647 return (
47- < Row css = { { gap : '$3' } } >
48+ < Inline >
4849 < Card >
4950 < CardHeading > Default Card</ CardHeading >
5051 < CardBody >
@@ -57,7 +58,7 @@ export const Classic: Story = () => {
5758 < Text > Lorem Ipsum is simply dummy text...</ Text >
5859 </ CardBody >
5960 </ Card >
60- </ Row >
61+ </ Inline >
6162 )
6263}
6364
@@ -68,7 +69,7 @@ export const Classic: Story = () => {
6869 */
6970export const Outline : Story = ( ) => {
7071 return (
71- < Row css = { { gap : '$3' } } >
72+ < Inline >
7273 < Card variant = "outline" >
7374 < CardHeading > Outline</ CardHeading >
7475 < CardBody >
@@ -81,7 +82,7 @@ export const Outline: Story = () => {
8182 < Text > Lorem Ipsum is simply dummy text...</ Text >
8283 </ CardBody >
8384 </ Card >
84- </ Row >
85+ </ Inline >
8586 )
8687}
8788
@@ -92,7 +93,7 @@ export const Outline: Story = () => {
9293 */
9394export const Ghost : Story = ( ) => {
9495 return (
95- < Row css = { { gap : '$3' } } >
96+ < Inline >
9697 < Card variant = "ghost" >
9798 < CardHeading > Ghost</ CardHeading >
9899 < CardBody >
@@ -105,7 +106,7 @@ export const Ghost: Story = () => {
105106 < Text > Lorem Ipsum is simply dummy text...</ Text >
106107 </ CardBody >
107108 </ Card >
108- </ Row >
109+ </ Inline >
109110 )
110111}
111112
@@ -128,7 +129,7 @@ export const Body: Story = () => (
128129 * By default headings are just `div`s, use the `as` prop if the heading should be semantic.
129130 */
130131export const Headers : Story = ( ) => (
131- < Row css = { { flexWrap : ' wrap' , gap : '$3' } } >
132+ < Inline wrap >
132133 < Card >
133134 < CardHeading > Heading</ CardHeading >
134135 < CardBody >
@@ -149,7 +150,7 @@ export const Headers: Story = () => (
149150 < Text > Lorem Ipsum is simply dummy text...</ Text >
150151 </ CardBody >
151152 </ Card >
152- </ Row >
153+ </ Inline >
153154)
154155
155156/**
@@ -159,7 +160,7 @@ export const Headers: Story = () => (
159160 * If a more complex layout is required you can create your own.
160161 */
161162export const Actions : Story = ( ) => (
162- < Row css = { { flexWrap : ' wrap' , gap : '$3' } } >
163+ < Inline wrap >
163164 < Card >
164165 < CardHeading >
165166 Heading
@@ -228,5 +229,5 @@ export const Actions: Story = () => (
228229 />
229230 </ CardActions >
230231 </ Card >
231- </ Row >
232+ </ Inline >
232233)
0 commit comments