UNPKG

@taml/react

Version:

React component for rendering TAML (Terminal ANSI Markup Language) as styled JSX elements

20 lines (18 loc) 403 B
/** * @taml/react - React component for rendering TAML (Terminal ANSI Markup Language) * * @example * ```tsx * import { Taml } from '@taml/react'; * import '@taml/react/styles.css'; * * function App() { * return ( * <Taml> * {"<red>Error:</red> <bold>Something went wrong</bold>"} * </Taml> * ); * } * ``` */ export { Taml, default, type TamlProps } from "./Taml.js";