-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Divider): Added variant prop with horizontal/vertical STC-545 (#156
- Loading branch information
1 parent
74f3232
commit 3ac38fb
Showing
4 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
The Divider component is used as a separator horizontally or vertically. | ||
|
||
### Example | ||
```jsx | ||
;( | ||
<div> | ||
Item 1 | ||
<Divider /> | ||
Item 2 | ||
</div> | ||
) | ||
``` | ||
|
||
### Vertical | ||
```jsx | ||
;( | ||
<div style={{ display: "flex", gap: 8 }}> | ||
Item 1 | ||
<Divider variant="vertical" /> | ||
Item 2 | ||
<Divider variant="vertical" /> | ||
Item 3 | ||
<Divider variant="vertical" /> | ||
Item 4 | ||
</div> | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3ac38fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for herzui ready!
✅ Preview
https://herzui-kcwqachdx-micromed.vercel.app
Built with commit 3ac38fb.
This pull request is being automatically deployed with vercel-action