import * as React from 'react';
import { Tree } from '@fluentui/react-northstar';
import { TriangleDownIcon, TriangleEndIcon } from '@fluentui/react-icons-northstar';
const items = [
{
id: 'tree-title-customization-item-1',
title: 'one',
items: [
{
id: 'tree-title-customization-item-2',
title: 'one one',
items: [
{
id: 'tree-title-customization-item-3',
title: 'one one one',
},
],
},
],
},
{
id: 'tree-title-customization-item-4',
title: 'two',
items: [
{
id: 'tree-title-customization-item-5',
title: 'two one',
},
],
},
];
const titleRenderer = (Component, { content, expanded, open, hasSubtree, ...restProps }) => (
{expanded ? : }
{content}
);
const TreeTitleCustomizationExample = () => (
);
export default TreeTitleCustomizationExample;