aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/aside/aside.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/aside/aside.tsx')
-rw-r--r--src/components/atoms/layout/aside/aside.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/atoms/layout/aside/aside.tsx b/src/components/atoms/layout/aside/aside.tsx
new file mode 100644
index 0000000..92a9bf2
--- /dev/null
+++ b/src/components/atoms/layout/aside/aside.tsx
@@ -0,0 +1,23 @@
+import {
+ type ForwardRefRenderFunction,
+ type HTMLAttributes,
+ type ReactNode,
+ forwardRef,
+} from 'react';
+
+export type AsideProps = HTMLAttributes<HTMLElement> & {
+ /**
+ * The aside contents.
+ */
+ children: ReactNode;
+};
+
+const AsideWithRef: ForwardRefRenderFunction<HTMLElement, AsideProps> = (
+ props,
+ ref
+) => <aside {...props} ref={ref} />;
+
+/**
+ * Aside component.
+ */
+export const Aside = forwardRef(AsideWithRef);