Skip to content

A useful react component for displaying a pedigree, like a boss

License

Notifications You must be signed in to change notification settings

Shaun2D2/react-pedigree

Repository files navigation

react-pedigree

React component for displaying a pedigree.

Installation

Install via NPM npm i @jolobo/react-pedigree.

Example Usage

import React from 'react'
import Pedigree from '@jolobo/react-pedigree'

const Example = () => {
    const family = [
        [
            {
                name: 'James Smith',
                dob: '10-01-2019'
            }
        ],
        [
            {
                name: 'Jerry Smith',
                dob: '10-01-2019'
            },
            {
                name: 'Jane Smith',
                dob: '10-01-2019'
            }
        ]
    ]

    return (
        <Pedigree data={family} />
    )
}

About

A useful react component for displaying a pedigree, like a boss

Resources

License

Stars

Watchers

Forks

Packages

No packages published