Skip to content

feat(react-headless-components-preview): add Image component#36099

Merged
dmytrokirpa merged 4 commits intomicrosoft:masterfrom
dmytrokirpa:feat/headless-image-component
May 6, 2026
Merged

feat(react-headless-components-preview): add Image component#36099
dmytrokirpa merged 4 commits intomicrosoft:masterfrom
dmytrokirpa:feat/headless-image-component

Conversation

@dmytrokirpa
Copy link
Copy Markdown
Contributor

@dmytrokirpa dmytrokirpa commented May 5, 2026

Summary

  • Adds a headless Image component to react-headless-components-preview, wrapping the native <img> element with no built-in styles
  • Wires up the image package export (entry point, package.json, bundle-size fixture, API surface)
  • Adds Storybook stories demonstrating cover, contain, center, and none object-fit variants via a CSS module

Test plan

  • yarn nx test react-headless-components-preview passes
  • Storybook story renders all four fit variants correctly
  • Bundle-size fixture builds without errors

🤖 Generated with Claude Code

Adds a headless Image component wrapping the native <img> element with no built-in styles. Includes fit-variant CSS module examples and Storybook stories demonstrating cover, contain, center, and none object-fit modes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Pull request demo site: URL

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-headless-components-preview
react-headless-components-preview: entire library
105.261 kB
31.122 kB
105.55 kB
31.198 kB
289 B
76 B

🤖 This report was generated against f1e6a792f57be18492e2e0e1de7c96df10e91ac3

@dmytrokirpa dmytrokirpa self-assigned this May 5, 2026
@dmytrokirpa dmytrokirpa marked this pull request as ready for review May 5, 2026 15:57
@dmytrokirpa dmytrokirpa requested a review from a team as a code owner May 5, 2026 15:57
@dmytrokirpa dmytrokirpa merged commit a425a19 into microsoft:master May 6, 2026
11 checks passed
@dmytrokirpa dmytrokirpa deleted the feat/headless-image-component branch May 6, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants