Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2.  
  3. const Card = (props) => {
  4.     return (
  5.         <div className="card">
  6.             {props.children}
  7.         </div>
  8.     )
  9. };
  10.  
  11. const CardHeader = (props) => {
  12.     return (
  13.         <header className="card-header">
  14.             {props.children}
  15.         </header>
  16.     )
  17. };
  18.  
  19. const CardTitle = (props) => {
  20.     return (
  21.         <h1 className="card-title">
  22.             {props.children}
  23.         </h1>
  24.     )
  25. };
  26.  
  27. const CardContent = (props) => {
  28.     return (
  29.         <div className="card-content">
  30.             {props.children}
  31.         </div>
  32.     )
  33. };
  34.  
  35. export {
  36.     Card,
  37.     CardContent,
  38.     CardHeader,
  39.     CardTitle
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement