React component to annotate your components — useful for prototypes and proof of concepts.
npm install --save @matt-dunn/react-wireframes
or
yarn add @matt-dunn/react-wireframes
const AnnotatedMyComponent = withWireframeAnnotation({
title: "MyComponent title",
description: "MyComponent description.",
})(MyComponent);
<WireframeContainer>
<AnnotatedMyComponent />
{/*...application*/}
</WireframeContainer>
See Storybook.
This example shows a set of components annotated using react-wireframes
.
import ReactDOM from "react-dom";
import React from "react";
import {
WireframeContainer, withWireframeAnnotation,
} from "@matt-dunn/react-wireframes";
const MyComponent = () => <article>Hello world</article>;
const AnnotatedMyComponent = withWireframeAnnotation({
title: "MyComponent title",
description: "MyComponent description.",
})(MyComponent);
const app = (
<WireframeContainer>
<AnnotatedMyComponent />
</WireframeContainer>
);
ReactDOM.render(
app,
document.getElementById("app"),
);
The MIT License (MIT) Copyright (c) 2020 Matt Dunn