Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

feat(notched-outline): update to v1.1.1 #806

Merged
merged 6 commits into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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