Skip to content

Commit

Permalink
Update defaultStyle example in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsaunders committed Jun 28, 2024
1 parent 90f90fb commit 4ba4be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ import { createComponent } from "@embellish/react";
const Box = createComponent({
displayName: "Box", // recommended for debugging purposes
defaultAs: "div", // optional, any HTML tag or component
defaultStyle: {
defaultStyle: () => ({
// optional, a regular React style object consisting of "base" styles
boxSizing: "border-box",
textDecoration: "none",
},
}),
conditions,
styleProps,
});
Expand Down

0 comments on commit 4ba4be8

Please sign in to comment.