Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(Card): fix code examples #1718

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/components/Card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ const style = {
justifyContent: 'center';
}

<Card style={style} theme="normal" size="l">Normal</UIKit.Card>
<Card style={style} theme="info" size="l">Info</UIKit.Card>
<Card style={style} theme="success" size="l">Success</UIKit.Card>
<Card style={style} theme="warning" size="l">Warning</UIKit.Card>
<Card style={style} theme="danger" size="l">Danger</UIKit.Card>
<Card style={style} theme="utility" size="l">Utility</UIKit.Card>
<Card style={style} theme="normal" size="l">Normal</Card>
<Card style={style} theme="info" size="l">Info</Card>
<Card style={style} theme="success" size="l">Success</Card>
<Card style={style} theme="warning" size="l">Warning</Card>
<Card style={style} theme="danger" size="l">Danger</Card>
<Card style={style} theme="utility" size="l">Utility</Card>
`}>

<div style={{display: 'grid', gridAutoFlow: 'column', gridGap: '10px'}}>
Expand Down Expand Up @@ -83,9 +83,9 @@ const style = {
justifyContent: 'center';
}

<Card style={style} view="outlined" type="container" size="l">Container</UIKit.Card>
<Card style={style} view="outlined" type="action" size="l">action with onClick</UIKit.Card>
<Card style={style} view="outlined" type="selection" size="l">Selection</UIKit.Card>
<Card style={style} view="outlined" type="container" size="l">Container</Card>
<Card style={style} view="outlined" type="action" size="l">action with onClick</Card>
<Card style={style} view="outlined" type="selection" size="l">Selection</Card>
`}>
<div style={{display: 'grid', gridAutoFlow: 'column', gridGap: '10px'}}>
<UIKit.Card style={{display: 'flex', alignItems: 'center', justifyContent: 'center', width: '120px', height: '120px'}} view="outlined" type="container" size="l">Container</UIKit.Card>
Expand Down Expand Up @@ -116,10 +116,10 @@ const style = {
justifyContent: 'center';
}

<Card style={style} view="clear" type="container" size="l">Clear</UIKit.Card>
<Card style={style} view="outlined" type="container" size="l">Outlined</UIKit.Card>
<Card style={style} view="filled" type="container" size="l">Filled</UIKit.Card>
<Card style={style} view="raised" type="container" size="l">Raised</UIKit.Card>
<Card style={style} view="clear" type="container" size="l">Clear</Card>
<Card style={style} view="outlined" type="container" size="l">Outlined</Card>
<Card style={style} view="filled" type="container" size="l">Filled</Card>
<Card style={style} view="raised" type="container" size="l">Raised</Card>
`}>
<div style={{display: 'grid', gridAutoFlow: 'column', gridGap: '10px'}}>
<UIKit.Card style={{display: 'flex', alignItems: 'center', justifyContent: 'center', width: '120px', height: '120px'}} view="clear" type="container" size="l">Clear</UIKit.Card>
Expand Down
Loading