diff options
author | Eric Bailey <git@esb.lol> | 2024-09-20 11:38:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 11:38:51 -0500 |
commit | 0eed1cfec1b0caac35930529dfd9ac92bf38606f (patch) | |
tree | c356b389bb5db2c5e531ec860b5a288bada4cbe6 /src/view/screens/Storybook/Buttons.tsx | |
parent | 27cceb96f33c86a06507a9ad3e631171474100b4 (diff) | |
download | voidsky-0eed1cfec1b0caac35930529dfd9ac92bf38606f.tar.zst |
[Neue] Buttons (#5406)
* Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
Diffstat (limited to 'src/view/screens/Storybook/Buttons.tsx')
-rw-r--r-- | src/view/screens/Storybook/Buttons.tsx | 131 |
1 files changed, 82 insertions, 49 deletions
diff --git a/src/view/screens/Storybook/Buttons.tsx b/src/view/screens/Storybook/Buttons.tsx index 2935103df..66040c2e3 100644 --- a/src/view/screens/Storybook/Buttons.tsx +++ b/src/view/screens/Storybook/Buttons.tsx @@ -9,7 +9,6 @@ import { ButtonText, ButtonVariant, } from '#/components/Button' -import {ArrowTopRight_Stroke2_Corner0_Rounded as ArrowTopRight} from '#/components/icons/Arrow' import {ChevronLeft_Stroke2_Corner0_Rounded as ChevronLeft} from '#/components/icons/Chevron' import {Globe_Stroke2_Corner0_Rounded as Globe} from '#/components/icons/Globe' import {H1} from '#/components/Typography' @@ -70,81 +69,115 @@ export function Buttons() { ), )} </View> - {/* - <View style={[a.gap_md, a.align_start]}> - {['gradient_sunset', 'gradient_nordic', 'gradient_bonfire'].map( - name => ( - <React.Fragment key={name}> - <Button - variant="gradient" - color={name as ButtonColor} - size="large" - label="Click here"> - <ButtonText>Button</ButtonText> - </Button> - <Button - disabled - variant="gradient" - color={name as ButtonColor} - size="large" - label="Click here"> - <ButtonText>Button</ButtonText> - </Button> - </React.Fragment> - ), - )} - </View> - */} </View> </View> <View style={[a.flex_wrap, a.gap_md, a.align_start]}> + <Button variant="solid" color="primary" size="large" label="Link out"> + <ButtonText>Button</ButtonText> + </Button> + <Button variant="solid" color="primary" size="large" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" /> + </Button> + + <Button variant="solid" color="primary" size="small" label="Link out"> + <ButtonText>Button</ButtonText> + </Button> + <Button variant="solid" color="primary" size="small" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" /> + </Button> + + <Button variant="solid" color="primary" size="tiny" label="Link out"> + <ButtonIcon icon={Globe} position="left" /> + <ButtonText>Button</ButtonText> + </Button> + </View> + + <View style={[a.flex_row, a.gap_md, a.align_center]}> + <Button variant="solid" color="primary" size="large" label="Link out"> + <ButtonText>Button</ButtonText> + </Button> + <Button variant="solid" color="primary" size="large" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" /> + </Button> + <Button variant="solid" color="primary" size="large" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" size="lg" /> + </Button> <Button - variant="gradient" - color="gradient_sky" + variant="solid" + color="primary" + size="large" + shape="round" + label="Link out"> + <ButtonIcon icon={ChevronLeft} /> + </Button> + <Button + variant="solid" + color="primary" size="large" + shape="round" label="Link out"> - <ButtonText>Link out</ButtonText> - <ButtonIcon icon={ArrowTopRight} position="right" /> + <ButtonIcon icon={ChevronLeft} size="lg" /> </Button> + </View> + <View style={[a.flex_row, a.gap_md, a.align_center]}> + <Button variant="solid" color="primary" size="small" label="Link out"> + <ButtonText>Button</ButtonText> + </Button> + <Button variant="solid" color="primary" size="small" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" /> + </Button> <Button - variant="gradient" - color="gradient_sky" + variant="solid" + color="primary" size="small" + shape="round" label="Link out"> - <ButtonText>Link out</ButtonText> - <ButtonIcon icon={ArrowTopRight} position="right" /> + <ButtonIcon icon={ChevronLeft} /> </Button> - <Button - variant="gradient" - color="gradient_sky" + variant="solid" + color="primary" size="small" + shape="round" label="Link out"> - <ButtonText>Link xxxxxx</ButtonText> + <ButtonIcon icon={ChevronLeft} size="lg" /> </Button> + </View> + <View style={[a.flex_row, a.gap_md, a.align_center]}> + <Button variant="solid" color="primary" size="tiny" label="Link out"> + <ButtonText>Button</ButtonText> + </Button> + <Button variant="solid" color="primary" size="tiny" label="Link out"> + <ButtonText>Button</ButtonText> + <ButtonIcon icon={Globe} position="right" /> + </Button> <Button - variant="gradient" - color="gradient_sky" - size="small" + variant="solid" + color="primary" + size="tiny" + shape="round" label="Link out"> - <ButtonIcon icon={Globe} position="left" /> - <ButtonText>Link out</ButtonText> + <ButtonIcon icon={ChevronLeft} /> </Button> - <Button - variant="gradient" - color="gradient_sky" + variant="solid" + color="primary" size="tiny" + shape="round" label="Link out"> - <ButtonIcon icon={Globe} position="left" /> - <ButtonText>Link out</ButtonText> + <ButtonIcon icon={ChevronLeft} size="md" /> </Button> </View> - <View style={[a.flex_row, a.gap_md, a.align_start]}> + <View style={[a.flex_row, a.gap_md, a.align_center]}> <Button variant="solid" color="primary" |