19 lines
379 B
TypeScript
19 lines
379 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|