@fluentui/react-image
TypeScript icon, indicating that this package has built-in type declarations

9.3.4 • Public • Published

@fluentui/react-image

Image components for Fluent UI React

Usage of Image component ensures consistent styling and behaviour of images in your application based on the Fluent UI Design System.

Usage

To import Image:

import { Image } from '@fluentui/react-components';

Examples

<Image src="example_image.png" />
<Image src="example_image.png" alt="Example image" />;
<Image src="example_image.png" bordered />;
<Image src="example_image.png" fit="contain" />;
<Image src="example_image.png" shadow />;
<Image src="example_image.png" shape="circular" />;

See Fluent UI Storybook for more detailed usage examples.

Alternatively, run Storybook locally with:

  1. yarn start
  2. Select react-image from the list.

Specification

See SPEC.md.

Migration

If you're upgrading to Fluent UI v9 see MIGRATION.md for guidance on updating to the latest Image implementation.

Readme

Keywords

none

Package Sidebar

Install

npm i @fluentui/react-image

Weekly Downloads

176,723

Version

9.3.4

License

MIT

Unpacked Size

194 kB

Total Files

41

Last publish

Collaborators

  • chrisdholt
  • miroslavstastny
  • levithomason
  • uifabricteam
  • uifrnbot
  • layershifter
  • ling1726
  • justslone
  • microsoft1es
  • sopranopillow