An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {TreeList} from '@astryxdesign/core/TreeList';
const noop = () => {};
export default function TreeListNavigationTree() {
return (
<TreeList
items={[
{
id: 'nav',
label: 'Navigation',
isExpanded: true,
children: [
{id: 'home', label: 'Home', onClick: noop},
{id: 'about', label: 'About', onClick: noop, isSelected: true},
{id: 'contact', label: 'Contact', onClick: noop},
],
},
]}
/>
);
}