JSPM

@instructure/ui-img

10.12.1-snapshot-3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2266
  • Score
    100M100P100Q141415F
  • License MIT

An accessible image component.

Package Exports

    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 MIT License Code of Conduct

    An accessible image component.

    Components

    The ui-img package contains the following:

    Installation

    npm install @instructure/ui-img

    Usage

    ---
    type: code
    ---
    import React from 'react'
    import { Img } from '@instructure/ui-img'
    
    const MyImg = () => {
      return (
        <Img src={placeholderImage(250, 350)} alt="A Placeholder Image" />
      )
    }