mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 14:08:29 -04:00
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
import clsx from "clsx";
|
|
import type { ComponentPropsWithoutRef } from "react";
|
|
|
|
import styles from "./List.module.css";
|
|
|
|
export const UnorderedList = ({ className, ...rest }: ComponentPropsWithoutRef<"ul">) => (
|
|
<ul className={clsx(styles.list, className)} {...rest} />
|
|
);
|
|
|
|
export const OrderedList = ({ className, ...rest }: ComponentPropsWithoutRef<"ol">) => (
|
|
<ol className={clsx(styles.list, className)} {...rest} />
|
|
);
|
|
|
|
export const ListItem = ({ className, ...rest }: ComponentPropsWithoutRef<"li">) => (
|
|
<li className={clsx(styles.listItem, className)} {...rest} />
|
|
);
|
|
|
|
export default UnorderedList;
|