Skip to content

Commit 0b0f9d4

Browse files
authored
docs: fix the typo at styled-components (#3186)
1 parent 9ba0a4a commit 0b0f9d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/pages/docs/migration/styled-components.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ In Panda, you add the style object to the `base` key of the style object. The `s
9191
```jsx
9292
import { styled } from '../styled-system/jsx'
9393

94-
const Button = styled('div', {
94+
const Button = styled('button', {
9595
base: {
9696
backgroundColor: '#fff',
9797
border: '1px solid #000',
@@ -446,7 +446,7 @@ export default defineConfig({
446446
// usage
447447
import { styled } from '../styled-system/jsx'
448448

449-
const style = styled.button`
449+
const Button = styled.button`
450450
&:hover {
451451
animation: rotate 200ms;
452452
}

0 commit comments

Comments
 (0)