---
title: "Discussion on \"Stateful Styles With XState and Styled System\" | Hashnode"
description: "Discussion on \"Stateful Styles With XState and Styled System\". You've probably seen a button like this one before:\n<Button>Cool Button</Button>\n\nOne that has options:\n<Button secondary>Secondary Cool Button</Button>\n\nMaybe even more options:\n<Button tertiary>Tertiary Cool Button</Button>\n\nBut what if I did this?..."
url: "https://hashnode.com/posts/stateful-styles-with-xstate-and-styled-system/62ef922aba649046e8d8f646"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stateful Styles With XState and Styled System](https://blog.robertbroersma.com/stateful-styles-with-xstate-and-styled-system?utm_source=hashnode&utm_medium=feed)

You've probably seen a button like this one before: <Button>Cool Button</Button> One that has options: <Button secondary>Secondary Cool Button</Button> Maybe even more options: <Button tertiary>Tertiary Cool Button</Button> But what if I did this?...

Mar 13, 2020 · 3 min read · blog.robertbroersma.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#xstate](https://hashnode.com/tag/xstate)
-   [#styled-components](https://hashnode.com/tag/styled-components)

## Written by

[Robert](https://hashnode.com/@robertbroersma)

@robertbroersma

  
[View profile](https://hashnode.com/@robertbroersma)

Maker of Things

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
