diff options
author | Eric Bailey <git@esb.lol> | 2024-10-14 04:06:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 12:06:07 +0300 |
commit | 830b4bee9c738576769b75218dadc6b1de1ba3a3 (patch) | |
tree | 44cdef83dfc29fde3670df88a8e339bf77c92d28 /src/view/screens/Storybook/Admonitions.tsx | |
parent | 7f3b5366e6908cff28295fbc4efee53550f0b4ea (diff) | |
download | voidsky-830b4bee9c738576769b75218dadc6b1de1ba3a3.tar.zst |
Add Admonition component (#5680)
* Add Admonition component * Tweak mobile padding * Format
Diffstat (limited to 'src/view/screens/Storybook/Admonitions.tsx')
-rw-r--r-- | src/view/screens/Storybook/Admonitions.tsx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/view/screens/Storybook/Admonitions.tsx b/src/view/screens/Storybook/Admonitions.tsx new file mode 100644 index 000000000..ca97ebb23 --- /dev/null +++ b/src/view/screens/Storybook/Admonitions.tsx @@ -0,0 +1,36 @@ +import React from 'react' +import {View} from 'react-native' + +import {atoms as a} from '#/alf' +import {Admonition} from '#/components/Admonition' +import {InlineLinkText} from '#/components/Link' +import {H1} from '#/components/Typography' + +export function Admonitions() { + return ( + <View style={[a.gap_md]}> + <H1>Admonitions</H1> + + <Admonition>The quick brown fox jumps over the lazy dog.</Admonition> + <Admonition type="info"> + How happy the blameless vestal's lot, the world forgetting by the world + forgot.{' '} + <InlineLinkText + label="test" + to="https://letterboxd.com/film/eternal-sunshine-of-the-spotless-mind/"> + Eternal sunshine of the spotless mind + </InlineLinkText> + ! Each pray'r accepted, and each wish resign'd. + </Admonition> + <Admonition type="tip"> + The quick brown fox jumps over the lazy dog. + </Admonition> + <Admonition type="warning"> + The quick brown fox jumps over the lazy dog. + </Admonition> + <Admonition type="error"> + The quick brown fox jumps over the lazy dog. + </Admonition> + </View> + ) +} |