@@ -21,7 +21,7 @@ interface StyledButtonProps {
2121 children ?: ReactChildren
2222}
2323
24- const StyledButton : React . SFC < StyledButtonProps > = createComponent < StyledButtonProps > ( {
24+ const StyledButton = createComponent < StyledButtonProps > ( {
2525 displayName : 'StyledButton' ,
2626 render ( { stardust, children } ) {
2727 const { classes } = stardust
@@ -48,7 +48,7 @@ export default () => (
4848
4949 const StyledButton = createComponent({
5050 displayName: 'StyledButton',
51- render: ({stardust, className, children}) => {
51+ render: ({ stardust, children }) => {
5252 const { classes } = stardust
5353 return <button className={classes.root}>{children}</button>
5454 }
@@ -75,7 +75,7 @@ export default () => (
7575 },
7676 componentStyles: {
7777 StyledButton: {
78- root: ({ props, variables, theme: { siteVariables } }) => ({
78+ root: ({ variables, theme: { siteVariables } }) => ({
7979 backgroundColor: siteVariables.colors.primary[500],
8080 color: variables.color,
8181 }),
@@ -257,14 +257,14 @@ export default () => (
257257 </ p >
258258 < ExampleSnippet
259259 value = { `
260- import { buttonBehavior } from '@stardust-ui/react'
260+ import { createComponent, buttonBehavior } from '@stardust-ui/react'
261261
262262 const StyledButton = createComponent({
263263 displayName: 'StyledButton',
264264 defaultProps: {
265265 accessibility: buttonBehavior
266266 },
267- render: ({stardust, className, children}) => {
267+ render: ({ stardust, children }) => {
268268 const { classes, accessibility } = stardust
269269 return <button {...accessibility.attributes.root} className={classes.root}>{children}</button>
270270 }
0 commit comments