Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import * as React from 'react';
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
/**
* Given user props, returns state and render function for an Image.
*/ export const useImage_unstable = (props, ref)=>{
const { bordered = false, fit = 'default', block = false, shape = 'square', shadow = false } = props;
const state = {
bordered,
fit,
block,
shape,
shadow,
components: {
root: 'img'
},
root: slot.always(getIntrinsicElementProps('img', {
ref,
...props
}), {
elementType: 'img'
})
};
return state;
};