
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
react-accessible-tree
Advanced tools
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
Example
import * as React from "react";
import { ITreeNode, ReactAccessibleTree } from "../src";
export const Food: React.FunctionComponent = () => {
const [treeData, setTreeData] = React.useState<ITreeNode[]>([
{
title: <h3>Fruits</h3>,
id: "fruits",
searchKeys: ["fruits"],
children: [
{
title: <div>Oranges</div>,
id: "oranges",
searchKeys: ["oranges"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Pineapple">Pineapples</a>
),
id: "pineapple",
searchKeys: ["pineapple"],
children: []
},
{
title: <div>Apples</div>,
id: "apple",
searchKeys: ["apple"],
children: [
{
id: "McIntosh",
title: (
<a href="https://en.wikipedia.org/wiki/McIntosh_%28apple%29">
McIntosh
</a>
),
searchKeys: ["McIntosh"],
children: []
},
{
id: "Granny Smith",
title: (
<a href="https://en.wikipedia.org/wiki/Granny_Smith">
Granny Smith
</a>
),
searchKeys: ["Granny", "Smith"],
children: []
},
{
id: "Fuji",
title: (
<a href="https://en.wikipedia.org/wiki/Fuji_(apple)">Fuji</a>
),
searchKeys: ["Fuji"],
children: []
}
]
},
{
title: <a href="https://en.wikipedia.org/wiki/Banana">Bananas</a>,
id: "bananas",
searchKeys: ["bananas"],
children: []
}
]
},
{
id: "vegetables",
title: <h3>Vegetables</h3>,
searchKeys: ["vegetables"],
children: [
{
id: "Podded Vegetables",
title: "Podded Vegetables",
searchKeys: ["Podded Vegetables"],
children: [
{
title: <a href="https://en.wikipedia.org/wiki/Lentil">Lentil</a>,
id: "lentil",
searchKeys: ["lentil"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Pea" role="link">
Pea
</a>
),
id: "pea",
searchKeys: ["pea"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Peanut">Peanut</a>,
id: "peanut",
searchKeys: ["peanut"],
children: []
}
]
},
{
id: "Bulb and Stem Vegetables",
title: "Bulb and Stem Vegetables",
searchKeys: ["Bulb and Stem Vegetables"],
children: [
{
title: (
<a href="https://en.wikipedia.org/wiki/Asparagus">Asparagus</a>
),
id: "Asparagus",
searchKeys: ["Asparagus"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Celery">Celery</a>,
id: "Celeryea",
searchKeys: ["Celery"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Leek">Leek</a>,
id: "leek",
searchKeys: ["leek"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Onion">Onion</a>,
id: "Onion",
searchKeys: ["Onion"],
children: []
}
]
},
{
id: "Root and Tuberous Vegetables",
title: "Root and Tuberous Vegetables",
searchKeys: ["Root and Tuberous Vegetables"],
children: [
{
title: <a href="https://en.wikipedia.org/wiki/Carrot">Carrot</a>,
id: "Carrot",
searchKeys: ["Carrot"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Ginger">Ginger</a>,
id: "Ginger",
searchKeys: ["Ginger"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Parsnip">Parsnip</a>
),
id: "Parsnip",
searchKeys: ["Parsnip"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Potato">Potato</a>,
id: "Potato",
searchKeys: ["Potato"],
children: []
}
]
}
]
}
]);
const onChange = (nextData: ITreeNode[]): void => {
setTreeData(nextData);
};
return <ReactAccessibleTree treeData={treeData} onChange={onChange} />;
};
FAQs
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
The npm package react-accessible-tree receives a total of 2 weekly downloads. As such, react-accessible-tree popularity was classified as not popular.
We found that react-accessible-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.