question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Card and card header

See original GitHub issue

image

To fit the new design, we’ll need to update Cards 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:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ImogenFcommented, Jun 12, 2018

@TejasQ I put this in and then took it out again after a discussion with @fabien0102.

Summary:

  • plural doesn’t make sense, since it might not always be plural
  • adding a Components suffix is inconsistent with how other components are named

So it’s staying as action until/unless we can figure out something better 😉

1reaction
ImogenFcommented, Jun 12, 2018

@TejasQ how about keeping it simple and going with actionComponents?

And the CardColumns structure is exactly what I’ve been playing around with.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found