Add StackedButton component (#9086)

This commit is contained in:
Eric Bailey
2025-09-30 16:18:36 -05:00
committed by GitHub
parent 5df6036c2c
commit 381feacd26
3 changed files with 70 additions and 0 deletions
+25
View File
@@ -8,6 +8,7 @@ import {
ButtonIcon,
type ButtonSize,
ButtonText,
StackedButton,
} from '#/components/Button'
import {ChevronLeft_Stroke2_Corner0_Rounded as ChevronLeft} from '#/components/icons/Chevron'
import {Globe_Stroke2_Corner0_Rounded as Globe} from '#/components/icons/Globe'
@@ -18,6 +19,30 @@ export function Buttons() {
<View style={[a.gap_md]}>
<Text style={[a.font_bold, a.text_5xl]}>Buttons</Text>
<View style={[a.flex_row, a.gap_md, a.align_start, {maxWidth: 350}]}>
<StackedButton
label="stacked"
icon={Globe}
color="secondary"
style={[a.flex_1]}>
Bop it
</StackedButton>
<StackedButton
label="stacked"
icon={Globe}
color="negative_subtle"
style={[a.flex_1]}>
Twist it
</StackedButton>
<StackedButton
label="stacked"
icon={Globe}
color="primary"
style={[a.flex_1]}>
Pull it
</StackedButton>
</View>
{[
'primary',
'secondary',