Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
pvinis committed Jan 4, 2023
1 parent 9537786 commit 4d227df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .storybook/storybook.requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const getStories = () => {
require("../lib/elements/Avatar/Avatar.stories.tsx"),
require("../lib/elements/Checkbox/Checkbox.stories.tsx"),
require("../lib/elements/Input/Input.stories.tsx"),
require("../lib/elements/Separator/Separator.stories.tsx"),
require("../lib/elements/Touchable/Touchable.stories.tsx"),
require("../lib/molecules/MenuItem.stories.tsx"),
require("../lib/svgs/icons.stories.tsx"),
Expand Down
15 changes: 15 additions & 0 deletions lib/elements/Separator/Separator.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Spacer } from "../../atoms"
import { Separator } from "./Separator"

export default {
title: "Separator",
component: Separator,
}

export const Styled = () => (
<>
<Separator />
<Spacer y="2" />
<Separator borderColor="red" />
</>
)
2 changes: 1 addition & 1 deletion lib/elements/Separator/Separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface SeparatorProps extends SpaceProps, WidthProps, BorderProps {}
* A horizontal divider whose width and spacing can be adjusted
*/
export const Separator = styled.View<SeparatorProps>`
border: 1px solid ${themeGet("colors.black10")};
border: 1px solid ${themeGet("colors.onBackgroundLow")};
border-bottom-width: 0;
${space};
${width};
Expand Down

0 comments on commit 4d227df

Please sign in to comment.