@ebay/ui-core-react 5.6.2 → 5.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,41 +105,14 @@ If you render children components dynamically and don't want to get React `key`
|
|
|
105
105
|
</EbayParentComponent>
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
You will need polyfills for IE. Recommended approach is using `core-js` with or without `babel`.
|
|
108
|
+
### Pass-Through Attributes
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
```js
|
|
113
|
-
import 'core-js/stable/object/values'
|
|
110
|
+
HTML attributes can be used on any component, and they will be passed through to the most prominent tag of the component. The most prominent tag is usually the root or form control, but individual components will note if it varies for specific cases.
|
|
114
111
|
|
|
115
|
-
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
But we suggest to use polyfills automatically by editing your `.babelrc`:
|
|
119
|
-
```json
|
|
120
|
-
{
|
|
121
|
-
"presets": [
|
|
122
|
-
[
|
|
123
|
-
"@babel/preset-env",
|
|
124
|
-
{
|
|
125
|
-
"useBuiltIns": "usage",
|
|
126
|
-
"corejs": "3",
|
|
127
|
-
"targets": {
|
|
128
|
-
"Chrome": 87,
|
|
129
|
-
"Firefox": 78,
|
|
130
|
-
"Safari": 11,
|
|
131
|
-
"Edge": 103,
|
|
132
|
-
"Opera": 89,
|
|
133
|
-
"ChromeAndroid": 83,
|
|
134
|
-
"ios_saf": 12
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
]
|
|
139
|
-
}
|
|
112
|
+
Example of usage:
|
|
113
|
+
```jsx
|
|
114
|
+
<EbayButton id="my-button" />
|
|
140
115
|
```
|
|
141
|
-
`targets` can also be something like "> 0.2%, not dead"
|
|
142
|
-
|
|
143
116
|
|
|
144
117
|
### Issues
|
|
145
118
|
|