0.1.9 • Published 9 months ago

@phase2/outline-image v0.1.9

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

outline-image

The image component, with support for parallax scrolling.

Properties

PropertyAttributeTypeDefaultDescription
hasCaptionSlotboolean
imageHrefimage-hrefstring \| booleanfalseImage url
imageLabelimage-labelstring \| booleanfalseImage text
imageRatioimage-ratio"default" \| "1/1" \| "3/2" \| "3/4" \| "4/3" \| "5/4" \| "16/9" \| "9/16" \| "21/9"Image aspect ratio.This value can be customized per image usage.It will work with the property usages of image-href and image-label.If using a slotted image, it will work if the structure is animg tag wrapped in a picture tag.
slotsSlotController"new SlotController(this, true)"

Methods

MethodType
captionSlotTemplate(): TemplateResult<ResultType> \| null

Slots

NameDescription
The image to be presented.
captionThe caption text for the image.
0.1.8

9 months ago

0.1.7

10 months ago

0.1.9

9 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago