Skip to content

Commit

Permalink
feat(notched-outline): update to v1.1.1 (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Apr 16, 2019
1 parent 1cf9792 commit 5c9a57f
Show file tree
Hide file tree
Showing 15 changed files with 334 additions and 293 deletions.
121 changes: 80 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"linear-progress",
"list",
"menu-surface",
"notched-outline",
"radio",
"ripple",
"select",
Expand Down Expand Up @@ -77,7 +78,7 @@
"@material/linear-progress": "^1.1.0",
"@material/list": "^1.0.0",
"@material/menu-surface": "^1.0.1",
"@material/notched-outline": "^0.41.0",
"@material/notched-outline": "^1.1.1",
"@material/radio": "^1.1.0",
"@material/ripple": "^1.0.0",
"@material/select": "^0.40.1",
Expand Down
21 changes: 19 additions & 2 deletions packages/notched-outline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,28 @@ import '@material/react-notched-outline/dist/notched-outline.css';

```js
import NotchedOutline from '@material/react-notched-outline';
import FloatingLabel from '@material/react-floating-label';

const MyComponent = () => {
return (
<NotchedOutline />
<NotchedOutline notch>
<FloatingLabel float>My Label</FloatingLabel>
</NotchedOutline>
);
}
```

#### Variant with No Notch

```js
import NotchedOutline from '@material/react-notched-outline';

const MyComponent = () => {
return (
<React.Fragment>
<label>My Label</label>
<NotchedOutline />
</React.Fragment>
);
}
```
Expand All @@ -39,7 +57,6 @@ const MyComponent = () => {
Prop Name | Type | Description
--- | --- | ---
className | String | Classes to be applied to the root element.
isRtl | Boolean | Shifts notch to right side if true.
notch | Boolean | Toggles between notched outline and idle outline state.
notchWidth | Number | Width of the notch in the outline.

Expand Down
Loading

0 comments on commit 5c9a57f

Please sign in to comment.