Plus UI Design · Practical guides

Build a React Bootstrap reference card

Use a handwritten reference component to understand the structure you want from a design-to-code workflow.

Separate the content

Keep the title and summary in props so the same card can represent several projects. Use a real destination for the action. The example below shows the component structure; your application must supply its own routing and Bootstrap styles.

Compare with the generated code

Look for the same responsibilities in the plugin output: a container, a title, a description and an action. Remove redundant wrappers only after checking their effect on spacing and responsive layout. Prefer readable component boundaries over a large block of repeated markup.

Test a second item

Render another card with a longer title and summary. This reveals whether the layout depends on the original screenshot’s text length. Review the card at a narrow width before placing several in a grid.

Example to adapt

import Card from "react-bootstrap/Card";
import Button from "react-bootstrap/Button";

export function ProjectCard({ title, summary, href }) {
  return <Card>
    <Card.Body>
      <Card.Title as="h2">{title}</Card.Title>
      <Card.Text>{summary}</Card.Text>
      <Button as="a" href={href}>View project</Button>
    </Card.Body>
  </Card>;
}