[feat] Create <rh-background-image>
#1206
Labels
feature
New feature or request
needs discovery
Needs discovery
needs refinement
This issue needs to be refined
needs revisiting
Outdated issues worth revisiting in the future
new component
New component to be created
Milestone
Description
rh-background-image
as an improvement onpf-background-image
with more feature set and variants. Should allow the image to be used in a container as well as positioned within that container, as well as repeated. Maybe support use of multiple background images as well?Suggested solution
Background image that could be placed like a standard
<img>
tagPossible attributes:
src (string) - required - path to image
src-2x - path to 2x image
src-sm - path to sm image
src-sm-2x - path to sm 2x image
src-lg - path to lg image
// see pf-background-image for more about the src attributes usage as base example
repeat (boolean) - default: false - allow for repeating icons.
Example API
Additional context
Current open PR for
<pf-background-image>
The text was updated successfully, but these errors were encountered: