Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add new component to display code snippets side-by-side
- Loading branch information
1 parent
8df4c16
commit 146328c
Showing
3 changed files
with
19 additions
and
0 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,12 @@ | ||
import React from 'react'; | ||
import * as styles from './styles.module.scss'; | ||
|
||
export const Snippet = ({ children }) => children; | ||
|
||
export const SnippetGroup = ({ children }) => { | ||
return ( | ||
<div className={styles.snippetGroup}> | ||
{children} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.snippetGroup { | ||
display: flex; | ||
gap: 1rem; | ||
} |
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