refactor(ui): extract reusable component package
This commit is contained in:
parent
87261b5a3f
commit
2664804e91
86 changed files with 102 additions and 85 deletions
19
packages/ui/src/components/Separator.tsx
Normal file
19
packages/ui/src/components/Separator.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
export interface SeparatorProps {
|
||||
orientation?: "horizontal" | "vertical";
|
||||
dense?: boolean;
|
||||
}
|
||||
|
||||
export function Separator({
|
||||
orientation = "horizontal",
|
||||
dense = false,
|
||||
}: SeparatorProps) {
|
||||
return (
|
||||
<div
|
||||
className="separator"
|
||||
data-orientation={orientation}
|
||||
data-dense={dense}
|
||||
role="separator"
|
||||
aria-orientation={orientation}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue