16 lines
809 B
JavaScript
16 lines
809 B
JavaScript
/* eslint-disable @typescript-eslint/no-deprecated */ 'use client';
|
|
import * as React from 'react';
|
|
import { renderInfoButton_unstable } from './renderInfoButton';
|
|
import { useInfoButton_unstable } from './useInfoButton';
|
|
import { useInfoButtonStyles_unstable } from './useInfoButtonStyles.styles';
|
|
/**
|
|
* InfoButtons provide a way to display additional information about a form field or an area in the UI.
|
|
*
|
|
* @deprecated use {@link @fluentui/react-components#InfoLabel} from `\@fluentui/react-components` or `\@fluentui/react-infolabel` instead
|
|
*/ export const InfoButton = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
const state = useInfoButton_unstable(props, ref);
|
|
useInfoButtonStyles_unstable(state);
|
|
return renderInfoButton_unstable(state);
|
|
});
|
|
InfoButton.displayName = 'InfoButton';
|