mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 17:13:03 -04:00
Shiki settings preview (#297)
This commit is contained in:
parent
49b45d8262
commit
2d08dd8a9c
6 changed files with 48 additions and 6 deletions
13
src/plugins/shikiCodeblocks/previewExample.tsx
Normal file
13
src/plugins/shikiCodeblocks/previewExample.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* eslint-disable header/header */
|
||||
import React from "react";
|
||||
|
||||
const handleClick = async () =>
|
||||
console.log((await import("@webpack/common")).Clipboard.copy("\u200b"));
|
||||
|
||||
export const Example: React.FC<{
|
||||
real: boolean,
|
||||
shigged?: number,
|
||||
}> = ({ real, shigged }) => <>
|
||||
<p>{`Shigg${real ? `ies${shigged === 0x1B ? "t" : ""}` : "y"}`}</p>
|
||||
<button onClick={handleClick}>Click Me</button>
|
||||
</>;
|
Loading…
Add table
Add a link
Reference in a new issue