Skip to content

Commit

Permalink
feat: Integrate FormSeparator component into demo and update styling …
Browse files Browse the repository at this point in the history
…to add slight opacity to text
  • Loading branch information
tnrich committed Dec 3, 2024
1 parent 0328016 commit d9c86f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/ui/demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import FormComponents from "./examples/FormComponents";
import UploadCsvWizard from "./examples/UploadCsvWizard";
import TagSelectDemo from "./examples/TagSelectDemo";
import { createRoot } from "react-dom/client";
import { FormSeparator } from "../../src/FormComponents/FormSeparator";

FocusStyleManager.onlyShowFocusOnTabs();

Expand Down Expand Up @@ -149,6 +150,16 @@ const demos = {
}
]
},
FormSeparator: {
demo: FormSeparator,
props: [
{
name: "label",
description: "The text to display in the separator",
type: "string"
}
]
},
MenuBar: {
demo: MenuBar,
props: [
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/FormComponents/FormSeparator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./style.css";
export const FormSeparator = ({ label = "or" } = {}) => {
return (
<div className="form-separator">
<p>{label}</p>
<p style={{ opacity: 0.8 }}>{label}</p>
</div>
);
};

0 comments on commit d9c86f0

Please sign in to comment.