Documentation
Ae2Text
AE2 small pixel text at 5.4 px by default, decorative.
import { Ae2Text } from "./index";
export function Ae2TextDemo() {
return (
<div className="relative h-16 w-48">
<Ae2Text left={8} top={8}>默认 5.4px</Ae2Text>
<Ae2Text left={8} size={7} top={24}>7px 小字</Ae2Text>
</div>
);
}
Install
$pnpm add @tennantite/ae2npm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ae2/src/ae2-text/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.