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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user