Text
Code, Kbd
Inline code and keys. Always left to right, also inside Arabic text.
import { Code, Kbd } from "@percentsa/ui";Examples
Run bun test or press ⌘ K
Code
export function CodeKbdExample() {
const t = useT();
return (
<Text>
{t("Run ", "شغّل ")}
<Code>bun test</Code>
{t(" or press ", " أو اضغط ")}
<Kbd>⌘</Kbd> <Kbd>K</Kbd>
</Text>
);
}