import React from "react";
import { Box, Text, render, useFocus } from "#/index.ts";
function Focus() {
return (
Press Tab to focus next element, Shift+Tab to focus previous element, Esc to reset focus.
);
}
function Item({ label }: { readonly label: string }) {
const { isFocused } = useFocus();
return (
{label} {isFocused ? (focused) : null}
);
}
render();