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

20 lines
1.2 KiB
JavaScript

'use client';
import * as React from 'react';
import { useTeachingPopoverTitle_unstable } from './useTeachingPopoverTitle';
import { renderTeachingPopoverTitle_unstable } from './renderTeachingPopoverTitle';
import { useTeachingPopoverTitleStyles_unstable } from './useTeachingPopoverTitleStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Define a styled TeachingPopoverTitle, using the `useTeachingPopoverTitle_unstable` and `useTeachingPopoverTitleStyles_unstable`
* hooks.
*
* TeachingPopoverTitle is similar to TeachingPopoverHeader, but it is intended to be placed within a TeachingPopoverBody
* TeachingPopoverTitle can also optionally render a dismiss button, however this should only be enabled when there is no TeachingPopoverHeader/dismiss.
*/ export const TeachingPopoverTitle = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useTeachingPopoverTitle_unstable(props, ref);
useTeachingPopoverTitleStyles_unstable(state);
useCustomStyleHook_unstable('useTeachingPopoverTitleStyles_unstable')(state);
return renderTeachingPopoverTitle_unstable(state);
});
TeachingPopoverTitle.displayName = 'TeachingPopoverTitle';