Files
powerpoint-toolbox/node_modules/@fluentui/react-label/lib/components/Label/Label.js
T
2025-03-07 19:22:02 +01:00

15 lines
643 B
JavaScript

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