@crave/farmblocks-footer
v2.5.13
Published
Farmblocks Footer
Downloads
1,649
Readme
Farmblocks-Footer
Design spec
See it on zeplin
Usage
import React, { Component } from "react";
import { render } from "react-dom";
import Footer from "@crave/farmblocks-footer";
import Button, { buttonTypes, buttonSizes } from "@crave/farmblocks-button";
const App = () => (
<div>
<Footer
helpText="Lorem ipsum dolor sit amet, consectetur adipiscing elit"
helpLinkHref="#"
helpLinkText="Get support"
actions={[
<Button
onClick={() => console.log("handle onCancelClick")}
size={buttonSizes.MEDIUM}
text="Cancel"
key="cancel"
/>,
<Button
onClick={() => console.log("handle onSaveClick")}
type={buttonTypes.PRIMARY}
size={buttonSizes.MEDIUM}
text="Save"
key="save"
/>
]}
/>
</div>
);
render(<App />, document.getElementById("root"));
API
Helper section:
helpText
: string (required)helpLinkText
: string (required)helpLinkHref
: string (required)
Action section:
actions
: array of dom nodes
See it in the source
License
MIT