diff options
Diffstat (limited to 'src/ui/objects/Body.tsx')
| -rw-r--r-- | src/ui/objects/Body.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ui/objects/Body.tsx b/src/ui/objects/Body.tsx new file mode 100644 index 0000000..149662c --- /dev/null +++ b/src/ui/objects/Body.tsx | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | import type { HTMLAttributes } from "corvos/plugins/jsx.ts"; | ||
| 2 | |||
| 3 | export type Props = HTMLAttributes<"div">; | ||
| 4 | |||
| 5 | export const Body = ({ class: cls, ...props }: Props) => ( | ||
| 6 | <div | ||
| 7 | class:list={[ | ||
| 8 | "s-body", | ||
| 9 | "s-headings", | ||
| 10 | "s-headings--display", | ||
| 11 | "s-links", | ||
| 12 | "s-links--colored", | ||
| 13 | "s-code", | ||
| 14 | "s-figures", | ||
| 15 | "s-blockquotes", | ||
| 16 | "s-lists", | ||
| 17 | cls, | ||
| 18 | ]} | ||
| 19 | {...props} | ||
| 20 | /> | ||
| 21 | ); | ||
