-
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.
add component for Note & more editing
- Loading branch information
1 parent
320257c
commit f5d3e18
Showing
5 changed files
with
71 additions
and
12 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,31 @@ | ||
/** | ||
* A Github styled note blockquote | ||
*/ | ||
|
||
import { ComponentChildren } from "preact" | ||
|
||
|
||
type Props = { | ||
children: ComponentChildren, | ||
} | ||
|
||
export default function( | ||
{ children }: Props | ||
) { | ||
return <blockquote | ||
class=" | ||
not-prose | ||
border-blue-500 border-l-8 border | ||
ps-3 pe-3 py-3 | ||
" | ||
> | ||
|
||
<p class="text-blue-500 mb-3 flex gap-2"> | ||
<span class="icon-[mdi--information-outline] w-6 h-6"></span> | ||
<span class="">Note</span> | ||
</p> | ||
|
||
<p>{ children }</p> | ||
|
||
</blockquote> | ||
} |
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
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