UNPKG

@kenshooui/react-tree

Version:

React Tree is a straight forward component that allows a user to display and manage a hierarchical structure of items in a clear and comfortable way.

11 lines (8 loc) 253 B
/** @jsx jsx */ import { jsx } from "@emotion/core"; import React from "react"; const BasicItem = props => { const { label = "", getStyles } = props; return <span css={getStyles("selectedItem", props)}>{label}</span>; }; export default BasicItem;