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
+15
View File
@@ -0,0 +1,15 @@
import * as React from 'react';
import { useText_unstable } from './useText';
import { renderText_unstable } from './renderText';
import { useTextStyles_unstable } from './useTextStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Typography and styling abstraction component used to ensure consistency of text.
*/ export const Text = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useText_unstable(props, ref);
useTextStyles_unstable(state);
useCustomStyleHook_unstable('useTextStyles_unstable')(state);
return renderText_unstable(state);
// Work around some small mismatches in inferred types which don't matter in practice
});
Text.displayName = 'Text';