-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListOrdered.mjs
More file actions
32 lines (26 loc) · 792 Bytes
/
Copy pathListOrdered.mjs
File metadata and controls
32 lines (26 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// @ts-check
import classNameProp from "class-name-prop";
import React from "react";
/** CSS dependency URLs for the React component {@linkcode ListOrdered}. */
export const css = new Set([
new URL("./ListOrdered.css", import.meta.url).href,
]);
/** React component for an {@link HTMLOListElement ordered list}. */
const ListOrdered = React.forwardRef(
(
/**
* @type {React.ComponentPropsWithoutRef<"ol">
* & { [dataAttribute: `data-${string}`]: unknown }}
*/
{ className, ...props },
/** @type {React.ForwardedRef<HTMLOListElement>} */
ref
) =>
React.createElement("ol", {
className: classNameProp("daui-ListOrdered", className),
...props,
ref,
})
);
ListOrdered.displayName = "ListOrdered";
export default ListOrdered;