v7.0.0-beta.1 release
This commit is contained in:
commit
6595fd0eb5
3967 files changed
+1875383
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import React, { forwardRef } from 'react';
|
||||
|
||||
export interface NavProps extends React.HTMLAttributes<HTMLElement> {}
|
||||
|
||||
/**
|
||||
* 기본 nav 컴포넌트
|
||||
*/
|
||||
export const Nav = forwardRef<HTMLElement, NavProps>(
|
||||
({ children, className = '', ...props }, ref) => {
|
||||
return (
|
||||
<nav
|
||||
ref={ref}
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
Nav.displayName = 'Nav';
|
||||
Reference in new issue
Block a user