Skip to content

Commit

Permalink
Merge pull request #67 from solidjs-community/thetarnav-patch-1
Browse files Browse the repository at this point in the history
remove `props.children` from button readme
  • Loading branch information
fabien-ml committed Aug 31, 2022
2 parents 9647411 + 2201b81 commit 0989ada
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ function Button(props: AriaButtonProps) {

const { buttonProps } = createButton(props, () => ref);

return (
<button {...buttonProps} ref={ref}>
{props.children}
</button>
);
return <button {...buttonProps} ref={ref}/>
}

function App() {
Expand Down Expand Up @@ -89,9 +85,7 @@ function Button(props: AriaButtonProps<"span">) {
"-webkit-user-select": "none"
}}
ref={ref}
>
{props.children}
</span>
/>
);
}

Expand Down Expand Up @@ -147,9 +141,7 @@ function ToggleButton(props: AriaToggleButtonProps) {
border: "none"
}}
ref={ref}
>
{props.children}
</button>
/>
);
}

Expand Down

0 comments on commit 0989ada

Please sign in to comment.