1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-22 04:15:31 -04:00
Files
jarv.is/components/List/List.tsx
T
2025-02-07 11:33:38 -05:00

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;