JSPM

@instructure/ui-img

7.3.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13652
  • Score
    100M100P100Q127291F
  • License MIT

An accessible image component.

Package Exports

  • @instructure/ui-img

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" />
  )
}