@servicensw/fixed-cta

3.1.0 • Public • Published

@servicensw/fixed-cta

Fixed CTA component

Service NSW package documentation and examples
(Login credentials required)

Installation

npm install @servicensw/fixed-cta --save-dev

How to use

CSS

  • PostCSS workflow: @import '@servicensw/fixed-cta';
  • Sass/Eyeglass: @import 'servicensw-fixed-cta';
  • Native CSS: @import url('dist/fixed-cta.css');
  • Link tag: <link href="dist/fixed-cta.css" rel="stylesheet" type="text/css">

HTML

<div class="fixed-cta">
  <div class="container">
    <div class="fixed-cta__action">
      <a
        href="#"
        class="button button--large button--primary"
        aria-describedby="fixedCtaMessage"
        >Call to action</a
      >
    </div>
    <div class="fixed-cta__message" id="fixedCtaMessage">
      <p>A message to accompany the call to action.</p>
    </div>
  </div>
</div>

Change log

Readme

Keywords

none

Package Sidebar

Install

npm i @servicensw/fixed-cta

Weekly Downloads

70

Version

3.1.0

License

MIT

Unpacked Size

4.73 kB

Total Files

6

Last publish

Collaborators

  • larowlan
  • rikki_iki
  • acbramley
  • erinsnsw
  • dojob65
  • ramya.shankaralingam
  • mariam.khoudier
  • christine.roque
  • previousnext-admin
  • mcaddz
  • jptaranto