material-you-react
Version:
Material You: Material You (M3) Design system and its components for simple integration with Next.Js or other react-based frameworks
16 lines (15 loc) • 552 B
TypeScript
import React from "react";
type DividerProps = {
type: "horizontal";
variant: "fullWidth" | "inset" | "middleInset" | "rightMargin";
} | {
type: "vertical";
variant?: never;
};
/**
* @description A Divider Component - Used to differentiate items.
* @params type : string ( `horizontal` | `vertical` )
* @params variant: string ( *Allowed Inputs ( 🔴 NOTE: only if type : horizontal )* = `fullWidth` | `inset` | `middleInset` | `rightMargin` )
*/
export default function Divider(props: DividerProps): React.JSX.Element;
export {};