forked from github/plane
d8bf9b4c2a
style: re-designed create-issue modal
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
// buttons
|
|
import {
|
|
ToggleBoldButton,
|
|
ToggleItalicButton,
|
|
ToggleUnderlineButton,
|
|
ToggleStrikeButton,
|
|
ToggleOrderedListButton,
|
|
ToggleBulletListButton,
|
|
ToggleCodeButton,
|
|
ToggleHeadingButton,
|
|
} from "@remirror/react";
|
|
|
|
export const CustomFloatingToolbar: React.FC = () => (
|
|
<div className="z-[99999] flex items-center gap-y-2 divide-x rounded border bg-white p-1 px-0.5 shadow-md">
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleHeadingButton
|
|
attrs={{
|
|
level: 1,
|
|
}}
|
|
/>
|
|
<ToggleHeadingButton
|
|
attrs={{
|
|
level: 2,
|
|
}}
|
|
/>
|
|
<ToggleHeadingButton
|
|
attrs={{
|
|
level: 3,
|
|
}}
|
|
/>
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleBoldButton />
|
|
<ToggleItalicButton />
|
|
<ToggleUnderlineButton />
|
|
<ToggleStrikeButton />
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleOrderedListButton />
|
|
<ToggleBulletListButton />
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleCodeButton />
|
|
</div>
|
|
</div>
|
|
);
|