@nimi.io/card
v0.9.0-beta.1
Published
Nimi Card App codebase. Exports a React component that takes an `Nimi` profile, and generates a Nimi Card.
Downloads
35
Readme
Nimi Card App
Nimi Card App codebase. Exports a React component that takes an Nimi
profile, and generates a Nimi Card.
Usage
Import the CardApp
component that provides the essential wrappers for the Nimi Card to function.
// app.tsx
import { CardApp, Nimi } from '@nimi.io/card'
export function App() {
const nimi: NimiCard = {
displayName: 'nimi.eth',
ensName: 'nimi.eth',
ensAddress: '0x0.....';
links: [],
addresses: [],
widgets: []
}
return <CardApp nimi={nimi} />;
}
Development
Setup
Clone
git clone https://github.com/nimi-app/card nimi-card
cd nimi-card
Install dependencies
npm i
Start
To start the app:
npm run start