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

16 lines
657 B
JavaScript

'use client';
import * as React from 'react';
import { useLabel_unstable } from './useLabel';
import { renderLabel_unstable } from './renderLabel';
import { useLabelStyles_unstable } from './useLabelStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* A label component provides a title or name to a component.
*/ export const Label = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useLabel_unstable(props, ref);
useLabelStyles_unstable(state);
useCustomStyleHook_unstable('useLabelStyles_unstable')(state);
return renderLabel_unstable(state);
});
Label.displayName = 'Label';