1.0.2 • Published 5 years ago

@rei/cdr-caption v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

CdrCaption

For the most up-to-date information, see REI Cedar documentation.

Properties

summarystringN/A
nametypedefault

Enables user to set appropriate HTML element tag. {a, button}

creditstringN/A
nametypedefault

Sets the string content for attribution. Not required

  • Component: @rei/cdr-caption
  • Component styles: cdr-caption.css

To incorporate the required assets for a component, use the following steps:

1. Install using NPM

Install the CdrCaption package using npm in your terminal:

Terminal

    npm i -s @rei/cdr-text

2. Import dependencies

main.js

// import your required css.
import "@rei/cdr-caption/dist/cdr-caption.css";

3. Add component to a template

local.vue

<template>
...
    <cdr-caption summary="Lorem ipsum dolor sit amet elit." credit="Lorem ipsum dolor sit"/>
...
</template>

<script>
import { CdrCaption } from '@rei/cdr-caption';
export default {
  ...
  components: {
     CdrCaption  
  }
}
</script>

Usage

The CdrCaption component is developed to work within a composition with other components; however composition-type components have not been developed yet.

The below example demonstrates how to extend this component for use within a figure.

    <figure>
    <cdr-img src="http://via.placeholder.com/350x150" />
    <figcaption>
        <cdr-caption
        summary="Testing and validating the final fit of the 2018/2019 Tecnica ski boot collection during the September 2017 focus group in Park City, Utah"
        credit="Image Credit: Blizzard Tecnica”
        />
    </figcaption>
    </figure>
1.0.2

5 years ago

1.0.2-alpha.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago

1.0.0-alpha.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago