function App() {const StyledButtonVariant = styled(Pressable, {px: "$3.5",py: "$2.5",rounded: "$md",variants: {variant: {solid: {bg: "$primary600",},subtle: {bg: "$primary300",},},},})const StyledButtonText = styled(Text,{color: "$textDark50",fontWeight: "400",},{ ancestorStyle: ["_text"] })return (<Provider config={config}><StyledButtonVariant variant="solid"><StyledButtonText>Button</StyledButtonText></StyledButtonVariant></Provider>)}
function App() {const StyledButtonVariant = styled(Pressable,{p: "$3",rounded: "$md",variants: {variant: {solid: {bg: "$primary600",},subtle: {bg: "$primary200",_text: {color: "$textDark600",},},},size: {xs: {px: "$3",py: "$2",},sm: {px: "$3.5",py: "$2.5",},},},},{descendantStyle: ["_text"],})const StyledButtonText = styled(Text,{color: "$textDark50",fontWeight: "400",},{ ancestorStyle: ["_text"] })return (<Provider config={config}><StyledButtonVariant variant="solid" size="xs"><StyledButtonText>Button</StyledButtonText></StyledButtonVariant></Provider>)}
function App() {const StyledButtonVariant = styled(Pressable, {px: "$3.5",py: "$2.5",rounded: "$md",variants: {variant: {solid: {bg: "$primary600",},subtle: {bg: "$primary400",},},outlined: {true: {borderColor: "$primary800",borderWidth: "$1",bg: "transparent",},},},})const StyledButtonText = styled(Text,{color: "$textDark50",fontWeight: "400",},{ ancestorStyle: ["_text"] })return (<Provider config={config}><StyledButtonVariant variant="solid" outlined={false}><StyledButtonText>Button</StyledButtonText></StyledButtonVariant></Provider>)}
function App() {const StyledButtonVariant = styled(Pressable,{p: "$3",rounded: "$md",variants: {variant: {solid: {bg: "$primary600",},subtle: {bg: "$primary200",_text: {color: "$textDark600",},},},size: {xs: {px: "$3",py: "$2",},sm: {px: "$3.5",py: "$2.5",},},},compoundVariants: [{variant: "solid",size: "sm",value: {borderWidth: "$2",":hover": {bg: "$primary700",},},},],},{descendantStyle: ["_text"],})const StyledButtonText = styled(Text,{color: "$textDark50",fontWeight: "400",},{ ancestorStyle: ["_text"] })return (<Provider config={config}><StyledButtonVariant variant="solid" size="sm" states={{ hover: true }}><StyledButtonText>Button</StyledButtonText></StyledButtonVariant></Provider>)}