JSPM

@instructure/ui-img

7.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2266
  • Score
    100M100P100Q141412F
  • License MIT

An accessible image component.

Package Exports

  • @instructure/ui-img
  • @instructure/ui-img/lib/Img

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@instructure/ui-img) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


category: packages

ui-img

npm  build-status  MIT License  Code of Conduct

An accessible image component.

Components

The ui-img package contains the following:

Installation

yarn add @instructure/ui-img

Usage

---
example: false
---
import React from 'react'
import { Img } from '@instructure/ui-img'

const MyImg = () => {
  return (
    <Img src={placeholderImage(250, 350)} alt="A Placeholder Image" />
  )
}