JSPM

@instructure/ui-img

11.2.1-snapshot-9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2265
  • Score
    100M100P100Q141035F
  • License MIT

An accessible image component.

Package Exports

  • @instructure/ui-img
  • @instructure/ui-img/es/index.js
  • @instructure/ui-img/lib/Img
  • @instructure/ui-img/lib/Img/index.js
  • @instructure/ui-img/lib/index.js

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

ui-img

npm MIT License Code of Conduct

An accessible image component.

Components

The ui-img package contains the following:

Installation

npm install @instructure/ui-img

Usage

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

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