1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-21 12:25:31 -04:00

all components should accept additional classnames

This commit is contained in:
2022-01-20 12:06:05 -05:00
parent 2162e9d563
commit 7e37adabc1
22 changed files with 150 additions and 86 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
import classNames from "classnames";
import type { BlockquoteHTMLAttributes } from "react";
import styles from "./Blockquote.module.css";
type Props = BlockquoteHTMLAttributes<HTMLElement>;
const Blockquote = ({ children, ...rest }: Props) => (
<blockquote className={styles.blockquote} {...rest}>
const Blockquote = ({ children, className, ...rest }: Props) => (
<blockquote className={classNames(styles.blockquote, className)} {...rest}>
{children}
</blockquote>
);