Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-text/lib/components/Text/Text.js

17 lines
752 B
JavaScript

'use client';
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';