24 lines
754 B
JavaScript
24 lines
754 B
JavaScript
import * as React from 'react';
|
|
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
|
/**
|
|
* Create the state required to render NavSectionHeader.
|
|
*
|
|
* The returned state can be modified with hooks such as useNavSectionHeaderStyles_unstable,
|
|
* before being passed to renderNavSectionHeader_unstable.
|
|
*
|
|
* @param props - props from this instance of NavSectionHeader
|
|
* @param ref - reference to root HTMLDivElement of NavSectionHeader
|
|
*/ export const useNavSectionHeader_unstable = (props, ref)=>{
|
|
return {
|
|
components: {
|
|
root: 'h3'
|
|
},
|
|
root: slot.always(getIntrinsicElementProps('h3', {
|
|
ref,
|
|
...props
|
|
}), {
|
|
elementType: 'h3'
|
|
})
|
|
};
|
|
};
|