-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert "is" prop to "as". * add changeset
- Loading branch information
Showing
9 changed files
with
63 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@embellish/react": minor | ||
--- | ||
|
||
Renamed the `is` prop to `as`. Aside from `as` being the more common prop name, the HTML `as` attribute applies only to `link` elements, which are strictly non-presentational. On the other hand, the `is` prop is a global attribute used for customizing built-in elements, making the `is` prop collision more likely to create an impediment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
docs/api/react.componentoptions.defaultis.md → docs/api/react.componentoptions.defaultas.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@embellish/react](./react.md) > [ComponentOptions](./react.componentoptions.md) > [defaultIs](./react.componentoptions.defaultis.md) | ||
[Home](./index.md) > [@embellish/react](./react.md) > [ComponentOptions](./react.componentoptions.md) > [defaultAs](./react.componentoptions.defaultas.md) | ||
|
||
## ComponentOptions.defaultIs property | ||
## ComponentOptions.defaultAs property | ||
|
||
Default value for the `is` prop | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultIs?: DefaultIs; | ||
defaultAs?: DefaultAs; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.