Layout Demo
This commit is contained in:
parent
4cb2909e62
commit
f9b93c4fce
10 changed files with 117 additions and 40 deletions
18
src/components/linkrow.tsx
Normal file
18
src/components/linkrow.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React from "react";
|
||||
|
||||
const LinkRow: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
return (
|
||||
<div className="w-full p-2 flex items-center justify-between gap-2 border-2 border-amber-500 rounded-full">
|
||||
{React.Children.map(children, (child, index) => (
|
||||
<>
|
||||
{index > 0 && <div className="h-6 w-0.5 bg-amber-500" />}
|
||||
<div key={index} className="px-2">
|
||||
{child}
|
||||
</div>
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LinkRow;
|
||||
Loading…
Add table
Add a link
Reference in a new issue