Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@maggioli-design-system/mds-img
Advanced tools
mds-img is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.
This is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
alt | alt | Specifies an alternate text for an image | string | '' |
aspectRatio | aspect-ratio | Specifies the aspect ratio of the image, useful to render all images of a list with the same proportions. When defined, mds-img will render the Host element with background-image instead of wrapping ad img element. This will drop all atributes useful for img elements only: alt, crossorigin, height, loading, referrerpolicy, sizes, src, srcset, width | string | '' |
crossorigin | crossorigin | Allow images from third-party sites that allow cross-origin access to be used with canvas | "anonymous" | "use-credentials" | undefined | 'use-credentials' |
height | height | The height attribute specifies the height of an image, in pixels. | string | undefined | undefined |
loading | loading | Specifies whether a browser should load an image immediately or to defer loading of images until some conditions are met. | "eager" | "lazy" | undefined | 'lazy' |
referrerpolicy | referrerpolicy | Specifies which referrer information to use when fetching an image. | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "unsafe-url" | undefined | 'no-referrer-when-downgrade' |
sizes | sizes | One or more strings separated by commas, indicating a set of source sizes. https://medium.com/@MRWwebDesign/responsive-images-the-sizes-attribute-and-unexpected-image-sizes-882a2eadb6db | string | undefined | undefined |
src | src | Specifies the path to the image | string | undefined |
srcset | srcset | Specifies a list of image files to use in different situations. Defines multiple sizes of the same image, allowing the browser to select the appropriate image source. | string | undefined | undefined |
width | width | The width attribute specifies the width of an image, in pixels. | string | undefined | undefined |
Event | Description | Type |
---|---|---|
mdsImgLoadError | Emits when the image is not loaded | CustomEvent<MdsImgEventDetail> |
mdsImgLoadSuccess | Emits when the image is successfully loaded | CustomEvent<MdsImgEventDetail> |
Part | Description |
---|---|
"media" |
graph TD;
mds-avatar --> mds-img
style mds-img fill:#f9f,stroke:#333,stroke-width:4px
Built with love @ Gruppo Maggioli from R&D Department
FAQs
mds-img is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.
The npm package @maggioli-design-system/mds-img receives a total of 126 weekly downloads. As such, @maggioli-design-system/mds-img popularity was classified as not popular.
We found that @maggioli-design-system/mds-img demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.