mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-14 23:00:49 -05:00
all components should accept additional classnames
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import classNames from "classnames";
|
||||
|
||||
import styles from "./HorizontalRule.module.css";
|
||||
|
||||
const HorizontalRule = () => <hr className={styles.hr} />;
|
||||
type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const HorizontalRule = ({ className, ...rest }: Props) => <hr className={classNames(styles.hr, className)} {...rest} />;
|
||||
|
||||
export default HorizontalRule;
|
||||
|
||||
Reference in New Issue
Block a user