1.0.1 • Published 6 years ago

@veams/component-figure v1.0.1

Weekly downloads
16
License
MIT
Repository
github
Last release
6 years ago

Figure

Description

The <figure> element is intended to be used in conjunction with the <figcaption> element to mark up diagrams, illustrations, photos code examples and other things. The specs says this:

The HTML <figure> element represents self-contained content, frequently with a caption (<figcaption>), and is typically referenced as a single unit.

The Figure component contains the picture and video component as dependency and prints out every necessary field for html figures.


Requirements


Installation

Installation with Veams

veams install component figure
veams -i c figure

Fields

figure.hbs

Settings

ParameterTypeValueDescription
settings.figureContextClassStringdefaultContext class of the figure.
settings.figureClassesStringModifier classes for the figure.
settings.figureIdStringJust pass a custom string when using an id for the figure.

Content

ParameterTypeDescription
content.figureCaptionObjectContains multiple elements
content.figureCaption.figureCaptionClassesStringModifier classes
content.figureCaption.captionHeadlineStringHeadline
content.figureCaption.captionContentStringContent
Nested Data Fields
ParameterTypeDescription
content.figurePictureObjectview @requirements
content.figureVideoObjectview @requirements
1.0.1

6 years ago

1.0.0

6 years ago