Card and card header
See original GitHub issueTo fit the new design, we’ll need to update Card
s to look like the above figure.
Proposed API
Card Layout with Columns
const MyAction = () => <>You can eat sushi like this. <a href="#">Learn more</a></>
// or...
const MyOtherAction = () => <Link to="/heaven"><Button>Hello</Button></Link>
<Card
title="Bundle Information"
action={MyAction}
>
<CardColumn title="Contributors">
<AvatarGroup collaborators={[]} />
</CardColumn>
<CardColumn title="Tags">
<Chip>agent-view</Chip>
<Chip>agent-view</Chip>
</CardColumn>
</Card>
Card Layout without Columns
const MyAction = () => <>You can eat sushi like this. <a href="#">Learn more</a></>
// or...
const MyOtherAction = () => <Link to="/heaven"><Button>Hello</Button></Link>
<Card
title="Bundle Information"
action={MyAction}
>
<CardTitle>Contributors</CardTitle>
<AvatarGroup collaborators={[]} />
<CardTitle>Members</CardTitle>
<AvatarGroup members={[]} />
</Card>
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Cards - Bootstrap
A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background...
Read more >Bootstrap 4 Cards - W3Schools
A card in Bootstrap 4 is a bordered box with some padding around its content. It includes options for headers, footers, content, colors,...
Read more >card-header - Bootstrap CSS class
Bootstrap CSS class card-header with source code and live preview. You can copy our examples and paste them into your project!
Read more >Card - CSS: Cascading Style Sheets - MDN Web Docs
The card component can contain a variety of content, including a heading, image, content and a footer. Each card should be the same...
Read more >Cards · Bootstrap - Boosted · Orange
A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@TejasQ I put this in and then took it out again after a discussion with @fabien0102.
Summary:
Components
suffix is inconsistent with how other components are namedSo it’s staying as
action
until/unless we can figure out something better 😉@TejasQ how about keeping it simple and going with
actionComponents
?And the CardColumns structure is exactly what I’ve been playing around with.