diff --git a/src/sections/Projects/Sistent/components/divider/code.js b/src/sections/Projects/Sistent/components/divider/code.js index f2f7bc30c0f6..3004932433c6 100644 --- a/src/sections/Projects/Sistent/components/divider/code.js +++ b/src/sections/Projects/Sistent/components/divider/code.js @@ -52,73 +52,73 @@ const content = ( const codes = [ ` - - - - - - - - - - - - - - - - `, + + + + + + + + + + + + + + + +`, ` - - - - `, + sx={{ + display: "inline-flex", + alignItems: "center", + border: "1px solid", + borderColor: "divider", + borderRadius: 2, + bgcolor: "background.paper", + color: "text.secondary", + "& svg": { + m: 1, + }, + }} + > + + + +`, ` - - - - - - `, + sx={{ + display: "flex", + alignItems: "center", + border: "1px solid", + borderColor: "divider", + borderRadius: 1, + bgcolor: "background.paper", + color: "text.secondary", + "& svg": { + m: 1, + }, + }} + > + + + + + +`, ` - {content} - CENTER - {content} - LEFT - {content} - RIGHT - {content} - - - - {content} - `, + {content} + CENTER + {content} + LEFT + {content} + RIGHT + {content} + + + + {content} +`, ]; export const DividerCode = () => { diff --git a/src/sections/Projects/Sistent/components/divider/index.js b/src/sections/Projects/Sistent/components/divider/index.js index bd5a6e0e10e7..06b58ba3e8a1 100644 --- a/src/sections/Projects/Sistent/components/divider/index.js +++ b/src/sections/Projects/Sistent/components/divider/index.js @@ -108,6 +108,80 @@ const SistentDivider = () => { in lists, cards, or flex containers, the Divider is accessible and can be styled to fit various design needs.

+ +

Props

+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropTypeDefault ValueDescription
variantstring"fullWidth" + Defines the style of the divider. Can be "fullWidth", + "inset", or "middle". "fullWidth" is the default and takes + the full width of its container. +
orientationstring"horizontal" + Specifies the divider's orientation. It can be + "horizontal" or "vertical". Default is "horizontal". +
componentelementType"div" + Specifies the component type for the divider. It can be + set to any valid HTML element, such as "li" to use the + divider within lists. Default is "div". +
sxobject{} + A custom style prop to modify the divider's appearance, + such as color, height, or margin. Accepts a style object. +
rolestring"separator" + Sets the ARIA role for accessibility purposes, generally + set as "separator" to indicate the divider's role. +
flexItembooleanfalse + If true, applies the divider as a flex item, adjusting it + within a flexbox layout. Default is false. +
+
+

Ways to use Divider Component

@@ -191,7 +265,6 @@ const SistentDivider = () => { properly within a flex container, ensuring it aligns with other flex items seamlessly.

- { compact layout.

- { Use the textAlign prop to align elements that are wrapped by the Divider.

- @@ -295,7 +366,6 @@ const SistentDivider = () => { -

Accessibility