node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

@gov.au/cta-link

@gov.au/more-link

Use cta links to draw attention to a primary call to action.

Contents


Install

yarn add @gov.au/more-link
npm install @gov.au/more-link --save-dev

⬆ back to top


Usage

⬆ back to top


React

Usage:

import CTALink from './cta-link.js';
 
<CTALink link="/signup" text="Sign up" />

All props:

<CTALink
    text="Sign up"        {/* The text of the CTA link */}
    onClick={ () => {} }  {/* A function to execute when the link is clicked, optional */}
/>

For more details have a look at the usage example.

⬆ back to top


Dependency graph

cta-link
└─ core

⬆ back to top


Build

⬆ back to top


Tests

The visual test: http://uikit.apps.staging.digital.gov.au/packages/cta-link/tests/site/

⬆ back to top


Release History

  • v0.3.0 - Added pancake-react plugin, ES5 main file
  • v0.2.0 - Added react component
  • v0.1.0 - 💥 Initial version

⬆ back to top


License

Copyright (c) Commonwealth of Australia. Licensed under MIT.

⬆ back to top

};