21 lines
630 B
JavaScript
21 lines
630 B
JavaScript
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
|
import * as React from 'react';
|
|
/**
|
|
* Given user props, defines default props for the Group
|
|
* @param props - User provided props to the Group component.
|
|
* @param ref - User provided ref to be passed to the Group component.
|
|
*/ export const useToolbarGroup_unstable = (props, ref)=>{
|
|
return {
|
|
components: {
|
|
root: 'div'
|
|
},
|
|
root: slot.always(getIntrinsicElementProps('div', {
|
|
ref,
|
|
role: 'presentation',
|
|
...props
|
|
}), {
|
|
elementType: 'div'
|
|
})
|
|
};
|
|
};
|