This package has been deprecated

Author message:

This component is deprecated, please migrate to @rei/cedar

@rei/cdr-caption

1.0.2 • Public • Published

CdrCaption

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

Properties

summary string N/A
name type default

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

credit string N/A
name type default

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>

Dependents (0)

Package Sidebar

Install

npm i @rei/cdr-caption

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

11.3 kB

Total Files

6

Last publish

Collaborators

  • kenji-crosland-rei
  • rei-user
  • mhewson
  • rei-cedar
  • peripateticus
  • heavymedl
  • benjag