Skip to content

Update READMEs #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 145 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
7e73988
Update README, sorting, readme, npm
FestplattenSchnitzel Jan 27, 2021
0a1f265
update README, table
FestplattenSchnitzel Jan 27, 2021
2939e48
update README, fix lerna link
FestplattenSchnitzel Jan 27, 2021
4aff030
update README, faq
FestplattenSchnitzel Jan 28, 2021
2754f00
update README, faq dividers
FestplattenSchnitzel Jan 28, 2021
8aa802e
update README, bottom nav diff
FestplattenSchnitzel Jan 28, 2021
952d1cc
update README, links to MD
FestplattenSchnitzel Jan 28, 2021
3666d2e
activityindicator, npm shields
FestplattenSchnitzel Jan 29, 2021
82b2f70
activityindicator, replace N with Nativescript
FestplattenSchnitzel Jan 29, 2021
e4515fb
activityindicator, installation deviders
FestplattenSchnitzel Jan 29, 2021
2581d98
activityindicator, headings
FestplattenSchnitzel Jan 29, 2021
ebe100c
activityindicator, material design
FestplattenSchnitzel Jan 29, 2021
0d0cf56
activityindicator, fix dividers
FestplattenSchnitzel Jan 29, 2021
860b713
activityindicator, npm shields
FestplattenSchnitzel Jan 29, 2021
e05800c
bottom-navigation, material design
FestplattenSchnitzel Jan 29, 2021
25100fa
bottom-navigation, fix table
FestplattenSchnitzel Jan 29, 2021
4d47678
bottom-navigation, warning
FestplattenSchnitzel Jan 29, 2021
76dfef8
bottom-navigation, headings, dividers
FestplattenSchnitzel Jan 29, 2021
8fdc671
main README, fix missing entries
FestplattenSchnitzel Jan 29, 2021
51f0fe3
bottomnavigationbar, npm shields
FestplattenSchnitzel Jan 29, 2021
01d1d21
bottomnavigationbar, remove broken link, character
FestplattenSchnitzel Jan 29, 2021
56b38b8
bottomnavigationbar, installation
FestplattenSchnitzel Jan 29, 2021
f841f60
bottomnavigationbar, headings
FestplattenSchnitzel Jan 29, 2021
cadd63c
bottomnavigationbar, table of contents
FestplattenSchnitzel Jan 29, 2021
fd8fbe9
bottomnavigationbar, link to material design
FestplattenSchnitzel Jan 29, 2021
1d69fd3
bottomsheet, shields
FestplattenSchnitzel Jan 29, 2021
7f2bb12
bottomsheet, title, description
FestplattenSchnitzel Jan 29, 2021
1f8059a
bottomsheet, installation, dividers
FestplattenSchnitzel Jan 29, 2021
cb43f23
bottomsheet, headings, dividers
FestplattenSchnitzel Jan 29, 2021
c53e5e2
button, shields
FestplattenSchnitzel Jan 29, 2021
62f3a37
bottom-navigation, warning divider
FestplattenSchnitzel Jan 29, 2021
a17828f
button, h1 heading
FestplattenSchnitzel Jan 29, 2021
1d192ca
button, description, material design
FestplattenSchnitzel Jan 29, 2021
6dba1c3
button, headings, misc
FestplattenSchnitzel Jan 29, 2021
37a24fe
button, installation, warning
FestplattenSchnitzel Jan 29, 2021
cefe956
button, dividers
FestplattenSchnitzel Jan 29, 2021
421e730
cardview, shields
FestplattenSchnitzel Jan 30, 2021
cb74f79
cardview, h1 title
FestplattenSchnitzel Jan 30, 2021
99926d6
cardview, remove obsolete text
FestplattenSchnitzel Jan 30, 2021
10de287
cardview, headings + dividers
FestplattenSchnitzel Jan 30, 2021
f196361
cardview, installation warning
FestplattenSchnitzel Jan 30, 2021
10780d4
dialogs, shields
FestplattenSchnitzel Jan 30, 2021
d876cf1
dialogs, h1 title
FestplattenSchnitzel Jan 30, 2021
45b8103
dialogs, installation warning
FestplattenSchnitzel Jan 30, 2021
d594079
dialogs, dividers
FestplattenSchnitzel Jan 30, 2021
38ed899
dialogs, misc
FestplattenSchnitzel Jan 30, 2021
15f3cef
floatingactionbutton, shields
FestplattenSchnitzel Jan 30, 2021
bfaf5c2
floatingactionbutton, h1 title
FestplattenSchnitzel Jan 30, 2021
333171b
floatingactionbutton, headings
FestplattenSchnitzel Jan 30, 2021
5dc5821
floatingactionbutton, installation warning
FestplattenSchnitzel Jan 30, 2021
64b9654
floatingactionbutton, dividers
FestplattenSchnitzel Jan 30, 2021
138308d
floatingactionbutton, misc
FestplattenSchnitzel Jan 30, 2021
9c029f0
progress, shields
FestplattenSchnitzel Jan 30, 2021
2324cef
progress, h1 title
FestplattenSchnitzel Jan 30, 2021
b7d6278
progress, headings
FestplattenSchnitzel Jan 30, 2021
8a946f3
progress, installation warning
FestplattenSchnitzel Jan 30, 2021
f80a682
progress, dividers
FestplattenSchnitzel Jan 30, 2021
35603b1
progress, misc
FestplattenSchnitzel Jan 30, 2021
33a027c
ripple, shields
FestplattenSchnitzel Jan 30, 2021
eda90ec
ripple, h1 title
FestplattenSchnitzel Jan 30, 2021
8b01aff
ripple, installation warning
FestplattenSchnitzel Jan 30, 2021
515eb64
ripple, headings
FestplattenSchnitzel Jan 30, 2021
d6f7873
ripple, dividers
FestplattenSchnitzel Jan 30, 2021
6715264
ripple, misc
FestplattenSchnitzel Jan 30, 2021
41b91ad
slider, shields
FestplattenSchnitzel Jan 31, 2021
f7cd057
slider, h1 title
FestplattenSchnitzel Jan 31, 2021
e0e7215
slider, warning
FestplattenSchnitzel Jan 31, 2021
8c3d877
slider, headings
FestplattenSchnitzel Jan 31, 2021
8d82770
slider, dividers
FestplattenSchnitzel Jan 31, 2021
2fe6937
slider, misc
FestplattenSchnitzel Jan 31, 2021
c27b73c
snackbar, shields
FestplattenSchnitzel Jan 31, 2021
6aa7fe6
snackbar, h1 title
FestplattenSchnitzel Jan 31, 2021
332a642
snackbar, warning
FestplattenSchnitzel Jan 31, 2021
50d6801
snackbar, dividers
FestplattenSchnitzel Jan 31, 2021
a03fe74
snackbar, misc
FestplattenSchnitzel Jan 31, 2021
ac97b90
speeddial, shields
FestplattenSchnitzel Jan 31, 2021
f4dab21
speeddial, misc empty line
FestplattenSchnitzel Jan 31, 2021
7f9bb78
speeddial, h1 title
FestplattenSchnitzel Jan 31, 2021
779d8d1
speeddial, warning
FestplattenSchnitzel Jan 31, 2021
de0e9e8
speeddial, installation
FestplattenSchnitzel Jan 31, 2021
8069c37
speeddial, headings
FestplattenSchnitzel Jan 31, 2021
fdf6300
speeddial, misc
FestplattenSchnitzel Jan 31, 2021
a463f77
tabs, shields
FestplattenSchnitzel Jan 31, 2021
4f60c3c
tabs, h1 title
FestplattenSchnitzel Jan 31, 2021
937a735
tabs, table fix
FestplattenSchnitzel Jan 31, 2021
6ac8b1b
tabs, installation
FestplattenSchnitzel Jan 31, 2021
8804be3
tabs, headings
FestplattenSchnitzel Jan 31, 2021
544a316
tabs, dividers
FestplattenSchnitzel Jan 31, 2021
bbfcdbb
tabs, misc
FestplattenSchnitzel Jan 31, 2021
81baf62
textfield, shields
FestplattenSchnitzel Jan 31, 2021
22b6355
textfield, h1 title
FestplattenSchnitzel Jan 31, 2021
ea160c6
textfield, warning
FestplattenSchnitzel Jan 31, 2021
55c88fb
textfield, headings
FestplattenSchnitzel Jan 31, 2021
6a078a2
textfield, dividers
FestplattenSchnitzel Jan 31, 2021
d74c975
textfield, misc
FestplattenSchnitzel Jan 31, 2021
062dbea
textview, shields
FestplattenSchnitzel Jan 31, 2021
af5c007
textview, h1 title
FestplattenSchnitzel Jan 31, 2021
3477967
textview, warning
FestplattenSchnitzel Jan 31, 2021
d78ba56
textview, headings
FestplattenSchnitzel Jan 31, 2021
73cb2f6
textview, dividers
FestplattenSchnitzel Jan 31, 2021
b4e4ed2
textview, misc
FestplattenSchnitzel Jan 31, 2021
b5de702
activityindicator, h1 title
FestplattenSchnitzel Jan 31, 2021
c813aad
activityindicator, misc
FestplattenSchnitzel Jan 31, 2021
02024e8
bottom-navigation, h1 title
FestplattenSchnitzel Jan 31, 2021
a583970
bottom-navigation, misc
FestplattenSchnitzel Jan 31, 2021
03d91f3
textfield, css comment
FestplattenSchnitzel Jan 31, 2021
564d138
activityindicator, ns casing
FestplattenSchnitzel Jan 31, 2021
4040f77
bottom-navigation, ns casing
FestplattenSchnitzel Jan 31, 2021
45316c5
bottomnavigationbar, ns casing
FestplattenSchnitzel Jan 31, 2021
7b19abc
bottomsheet, ns casing
FestplattenSchnitzel Jan 31, 2021
d99c2f7
bottomsheet, ns casing
FestplattenSchnitzel Jan 31, 2021
7cc48ed
button, ns casing
FestplattenSchnitzel Jan 31, 2021
766406e
cardview, ns casing
FestplattenSchnitzel Jan 31, 2021
fbade2e
dialogs, ns casing
FestplattenSchnitzel Jan 31, 2021
4c31c83
floatingactionbutton, ns casing
FestplattenSchnitzel Jan 31, 2021
b5dda65
progress, ns casing
FestplattenSchnitzel Jan 31, 2021
ef43907
ripple, ns casing
FestplattenSchnitzel Jan 31, 2021
40c5a0f
slider, ns casing
FestplattenSchnitzel Jan 31, 2021
b3a66cb
snackbar, ns casing
FestplattenSchnitzel Jan 31, 2021
2f228b2
textfield, ns casing
FestplattenSchnitzel Jan 31, 2021
c5de5e7
textview, ns casing
FestplattenSchnitzel Jan 31, 2021
5844d9b
bottomnavigationbar, changelog, faq
FestplattenSchnitzel Jan 31, 2021
819b86b
bottomnavigationbar, remove new features
FestplattenSchnitzel Jan 31, 2021
4a76b3c
bottomnavigationbar, adjust toc
FestplattenSchnitzel Jan 31, 2021
3e8c4b2
activityindicator, toc
FestplattenSchnitzel Jan 31, 2021
37c4eed
bottom-navigation, toc
FestplattenSchnitzel Jan 31, 2021
a72c5ea
bottomsheet, toc
FestplattenSchnitzel Jan 31, 2021
9166492
button, toc
FestplattenSchnitzel Jan 31, 2021
bdeef22
cardview, toc
FestplattenSchnitzel Jan 31, 2021
fa0f7c7
dialogs, toc
FestplattenSchnitzel Jan 31, 2021
f372379
floatingactionbutton, toc
FestplattenSchnitzel Jan 31, 2021
db115a5
progress, toc
FestplattenSchnitzel Jan 31, 2021
bbb2acb
ripple, toc
FestplattenSchnitzel Jan 31, 2021
4828e83
slider, toc
FestplattenSchnitzel Jan 31, 2021
7ac2586
snackbar, toc
FestplattenSchnitzel Jan 31, 2021
c00d607
speeddial, toc
FestplattenSchnitzel Jan 31, 2021
33cf047
tabs, toc
FestplattenSchnitzel Jan 31, 2021
228bc4c
textfield, toc
FestplattenSchnitzel Jan 31, 2021
87635e2
textview, toc
FestplattenSchnitzel Jan 31, 2021
a6a771d
dialogs, new build
FestplattenSchnitzel Feb 3, 2021
00db869
bottomnavigationbar, new build
FestplattenSchnitzel Feb 3, 2021
4bb8cd4
root, names
FestplattenSchnitzel Feb 3, 2021
6fea3bc
bottomsheet, name
FestplattenSchnitzel Feb 3, 2021
6497e25
floatingactionbutton, name
FestplattenSchnitzel Feb 3, 2021
226c0f8
bottomnavigationbar, name
FestplattenSchnitzel Feb 3, 2021
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
66 changes: 41 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
# Nativescript Material Components

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

Build beautiful, usable products using Material Components for NativeScript.

## Components

- [Button](./packages/button/README.md)
- [Floating Action Button](./packages/floatingactionbutton/README.md)
- [TextField](./packages/textfield/README.md)
- [TextView](./packages/textview/README.md)
- [CardView](./packages/cardview/README.md)
- [Slider](./packages/slider/README.md)
- [Progress](./packages/progress/README.md)
- [ActivityIndicator](./packages/activityindicator/README.md)
- [Dialogs](./packages/dialogs/README.md)
- [Bottom Sheets](./packages/bottomsheet/README.md)
- [Ripple View](./packages/ripple/README.md)
- [Snackbar](./packages/snackbar/README.md)
- [Bottom Navigation Bar](./packages/bottomnavigationbar/README.md)
| Name | README | npm | Material design |
| :---: | :---: | :---: | :---: |
| Circular progress indicator | [README.md](./packages/activityindicator/README.md) | [@nativescript-community/ui-material-activityindicator](https://www.npmjs.com/package/@nativescript-community/ui-material-activityindicator) | [Circular progress indicators](https://material.io/components/progress-indicators#circular-progress-indicators) |
| Bottom navigation | [README.md](./packages/bottom-navigation/README.md) | [@nativescript-community/ui-material-bottom-navigation](https://www.npmjs.com/package/@nativescript-community/ui-material-bottom-navigation) | [Bottom navigation](https://material.io/components/bottom-navigation) |
| Bottom navigation bar | [README.md](./packages/bottomnavigationbar/README.md) | [@nativescript-community/ui-material-bottomnavigationbar](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomnavigationbar) | [Bottom navigation](https://material.io/components/bottom-navigation) |
| Bottom sheet | [README.md](./packages/bottomsheet/README.md) | [@nativescript-community/ui-material-bottomsheet](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomsheet) | [Sheets: bottom](https://material.io/components/sheets-bottom) |
| Button | [README.md](./packages/button/README.md) | [@nativescript-community/ui-material-button](https://www.npmjs.com/package/@nativescript-community/ui-material-button) | [Buttons](https://material.io/components/buttons) |
| Card | [README.md](./packages/cardview/README.md) | [@nativescript-community/ui-material-cardview](https://www.npmjs.com/package/@nativescript-community/ui-material-cardview) | [Cards](https://material.io/components/cards) |
| Dialogs | [README.md](./packages/dialogs/README.md) | [@nativescript-community/ui-material-dialogs](https://www.npmjs.com/package/@nativescript-community/ui-material-dialogs) | [Dialogs](https://material.io/components/dialogs) |
| Floating action button | [README.md](./packages/floatingactionbutton/README.md) | [@nativescript-community/ui-material-floatingactionbutton](https://www.npmjs.com/package/@nativescript-community/ui-material-floatingactionbutton) | [Buttons: floating action button](https://material.io/components/buttons-floating-action-button) |
| Linear progress indicator | [README.md](./packages/progress/README.md) | [@nativescript-community/ui-material-progress](https://www.npmjs.com/package/@nativescript-community/ui-material-progress) | [Linear progress indicators](https://material.io/components/progress-indicators#linear-progress-indicators) |
| Ripple | [README.md](./packages/ripple/README.md) | [@nativescript-community/ui-material-ripple](https://www.npmjs.com/package/@nativescript-community/ui-material-ripple) | [Ripple](https://material.io/design/interaction/states.html#pressed) |
| Slider | [README.md](./packages/slider/README.md) | [@nativescript-community/ui-material-slider](https://www.npmjs.com/package/@nativescript-community/ui-material-slider) | [Sliders](https://material.io/components/sliders) |
| Snackbar | [README.md](./packages/snackbar/README.md) | [@nativescript-community/ui-material-snackbar](https://www.npmjs.com/package/@nativescript-community/ui-material-snackbar) | [Snackbars](https://material.io/components/snackbars) |
| Speed dial | [README.md](./packages/speeddial/README.md) | [@nativescript-community/ui-material-speeddial](https://www.npmjs.com/package/@nativescript-community/ui-material-speeddial) | [Speed dial](https://material.io/components/buttons-floating-action-button#types-of-transitions) |
| Tabs | [README.md](./packages/tabs/README.md) | [@nativescript-community/ui-material-tabs](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs) | [Tabs](https://material.io/components/tabs) |
| Text field | [README.md](./packages/textfield/README.md) | [@nativescript-community/ui-material-textfield](https://www.npmjs.com/package/@nativescript-community/ui-material-textfield) | [Text fields](https://material.io/components/text-fields) |
| Text view | [README.md](./packages/textview/README.md) | [@nativescript-community/ui-material-textview](https://www.npmjs.com/package/@nativescript-community/ui-material-textview) | [Material Text View](https://material.io/develop/android/components/material-text-view) |

## FAQ

**Question:** How to use the latest version of this plugin for iOS?

**Answer:** To get latest versions of Material Components for iOS (> 112.1) you will need to change Pod min version to 10.0
To do that modify or create `App_Resources/iOS/Podfile` to add `platform :ios, '10.0'`.
You can see an example in the demo-vue app.

##

## iOS latest versions
**Q:** How to migrate to AndroidX with this plugin installed (Android only)?

To get latest versions of Material Components for iOS (> 112.1) you will need to change Pod min version to 10.0
To do that modify or create `App_Resources/iOS/Podfile` to add `platform :ios, '10.0'`.
**A:** For Material Components to work correctly with {N} 6 and AndroidX you need to update your android app theme.
Inside ```App_resources/android/res/values/styles.xml``` replace all occurences of ```Theme.AppCompat``` with ```Theme.MaterialComponents```
You can see an example in the demo-vue app.

## Android migration to AndroidX
##

For Material Components to work correctly with {N} 6 and AndroidX you need to update your android app theme.
inside ```App_resources/android/res/values/styles.xml``` replace all occurences of ```Theme.AppCompat``` with ```Theme.MaterialComponents```
You can see an example in the demo-vue app.
**Q:** What is the difference between Bottom Navigation and Bottom Navigation Bar component?

## Contribution
**A:** The _Bottom Navigation Bar_ is a new component to draw a bottom navigation bar in material design.
The _Bottom Navigation_ component is a simple extract of the [eponymous component from NativeScript](https://docs.nativescript.org/ui/components/bottom-navigation), which probably will be removed in the future so this one can be used for easy transition.

##

**Q:** How can I contribute?

**A:**
```bash
npm i
npm run setup // this should happen for every typescript update
npm run setup # this should happen for every typescript update
npm run tsc
npm run demo.ios
npm run demo.android
```


60 changes: 42 additions & 18 deletions packages/activityindicator/README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,51 @@
[![npm](https://img.shields.io/npm/v/nativescript-material-activityindicator.svg)](https://www.npmjs.com/package/nativescript-material-activityindicator)
[![npm](https://img.shields.io/npm/dt/nativescript-material-activityindicator.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-material-activityindicator)
[![GitHub forks](https://img.shields.io/github/forks/Akylas/nativescript-material-components.svg)](https://github.com/Akylas/nativescript-material-components/network)
[![GitHub stars](https://img.shields.io/github/stars/Akylas/nativescript-material-components.svg)](https://github.com/Akylas/nativescript-material-components/stargazers)
# NativeScript Material Circular progress indicator

Material Design's [Circular progress indicator](https://material.io/design/components/progress-indicators.html#circular-progress-indicators) component for NativeScript.

[![npm](https://img.shields.io/npm/v/@nativescript-community/ui-material-activityindicator.svg)](https://www.npmjs.com/package/@nativescript-community/ui-material-activityindicator)
[![npm](https://img.shields.io/npm/dt/@nativescript-community/ui-material-activityindicator.svg?label=npm%20downloads)](https://www.npmjs.com/package/@nativescript-community/ui-material-activityindicator)

## Contents

1. [Installation](#installation)
2. [Changelog](#changelog)
3. [FAQ](#faq)
4. [Usage](#usage)
- [Plain NativeScript](#plain-nativescript)
- [Angular](#nativescript--angular)
- [Vue](#nativescript--vue)
5. [API](#api)

## Installation

For N 7.0
For NativeScript 7.0+
* `tns plugin add @nativescript-community/ui-material-activityindicator`

For N 6.x
##

For NativeScript 6.x
* `tns plugin add nativescript-material-activityindicator`

##

If using ```tns-core-modules```
* `tns plugin add [email protected]`

Be sure to run a new build after adding plugins to avoid any issues.
##

---
Be sure to run a new build after adding plugins to avoid any issues.

##### [Material Design Spec](https://material.io/design/components/progress-indicators.html#circular-progress-indicators)
## [Changelog](./CHANGELOG.md)

### Usage
## [FAQ](../../README.md#faq)

## Usage

## Plain NativeScript
### Plain NativeScript

<span style="color:red">IMPORTANT: </span>_Make sure you include `xmlns:mda="@nativescript-community/ui-material-activityindicator"` on the Page element_
IMPORTANT: _Make sure you include `xmlns:mda="@nativescript-community/ui-material-activityindicator"` on the Page element._

### XML
#### XML

```XML
<Page xmlns:mda="@nativescript-community/ui-material-activityindicator">
Expand All @@ -37,15 +55,17 @@ Be sure to run a new build after adding plugins to avoid any issues.
</Page>
```

### CSS
#### CSS

```CSS
mdcactivityindicator {
color: #fff;
}
```

## NativeScript + Angular
##

### NativeScript + Angular

```typescript
import { NativeScriptMaterialActivityIndicatorModule } from "@nativescript-community/ui-material-activityindicator/angular";
Expand All @@ -63,7 +83,9 @@ import { NativeScriptMaterialActivityIndicatorModule } from "@nativescript-commu
<MDActivityIndicator busy="true"></MDActivityIndicator>
```

## NativeScript + Vue
##

### NativeScript + Vue

```javascript
import Vue from 'nativescript-vue';
Expand All @@ -76,6 +98,8 @@ Vue.use(ActivityIndicatorPlugin);
<MDActivityIndicator busy="true"/>
```

## Attributes
## API

### Attributes

Inherite from Nativescript [Activity Indicator](https://docs.nativescript.org/ui/ns-ui-widgets/activity-indicator) so it already has all the same attributes
Inherite from NativeScript [Activity Indicator](https://docs.nativescript.org/ui/ns-ui-widgets/activity-indicator) so it already has all the same attributes
72 changes: 47 additions & 25 deletions packages/bottom-navigation/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,45 @@
[![npm](https://img.shields.io/npm/v/nativescript-material-bottom-navigation.svg)](https://www.npmjs.com/package/nativescript-material-bottom-navigation)
[![npm](https://img.shields.io/npm/dt/nativescript-material-bottom-navigation.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-material-bottom-navigation)
[![GitHub forks](https://img.shields.io/github/forks/Akylas/nativescript-material-components.svg)](https://github.com/Akylas/nativescript-material-components/network)
[![GitHub stars](https://img.shields.io/github/stars/Akylas/nativescript-material-components.svg)](https://github.com/Akylas/nativescript-material-components/stargazers)
# NativeScript Material Bottom navigation

Material Design's [Bottom navigation](https://material.io/components/bottom-navigation) component for NativeScript.

[![npm](https://img.shields.io/npm/v/@nativescript-community/ui-material-bottom-navigation.svg)](https://www.npmjs.com/package/@nativescript-community/ui-material-bottom-navigation)
[![npm](https://img.shields.io/npm/dt/@nativescript-community/ui-material-bottom-navigation.svg?label=npm%20downloads)](https://www.npmjs.com/package/@nativescript-community/ui-material-bottom-navigation)

## Contents

1. [Installation](#installation)
2. [Changelog](#changelog)
3. [FAQ](#faq)
4. [Usage](#usage)
- [Plain NativeScript](#plain-nativescript)
- [Angular](#nativescript--angular)
- [Vue](#nativescript--vue)
5. [API](#api)

## Installation

### Warning :warning: :warning:
From 5.x using material component will break N tab component on iOS (which is bound to be removed). This is needed to allow using the latest native iOS features. If needed you can use either [bottomnavigationbar](https://www.npmjs.com/package/nativescript-material-bottomnavigationbar) (this one is the best choice, closest to material design) or [tabs](https://www.npmjs.com/package/nativescript-material-bottom-navigation) (clone of N one, but with a little less features)
### :warning: Warning :warning:
From NativeScript 5.x using this component will break the [NativeScript tab component](https://docs.nativescript.org/ui/components/tabs) on iOS (which is bound to be removed). This is needed to allow using the latest native iOS features. If needed you can use either [bottomnavigationbar](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomnavigationbar) (this one is the best choice, closest to material design) or [material-tabs](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs) (clone of the NativeScript one, but with a little less features).

* `tns plugin add @nativescript-community/ui-material-bottom-navigation`
##

Be sure to run a new build after adding plugins to avoid any issues.
```bash
ns plugin add @nativescript-community/ui-material-bottom-navigation
```

---
Be sure to run a new build after adding plugins to avoid any issues.

##### [Material Design Spec](https://material.io/design/components/bottom-navigation.html)
## [Changelog](./CHANGELOG.md)

### Usage
## [FAQ](../../README.md#faq)

## Usage

## Plain NativeScript
### Plain NativeScript

<span style="color:red">IMPORTANT: </span>_Make sure you include `xmlns:mds="@nativescript-community/ui-material-bottom-navigation"` on the Page element_
IMPORTANT: _Make sure you include `xmlns:mds="@nativescript-community/ui-material-bottom-navigation"` on the Page element._

### XML
#### XML

```XML
<Page xmlns:mdt="@nativescript-community/ui-material-bottom-navigation">
Expand Down Expand Up @@ -64,7 +80,7 @@ Be sure to run a new build after adding plugins to avoid any issues.
</Page>
```

### CSS
#### CSS

```CSS
MDBottomNavigation.bottom-nav {
Expand Down Expand Up @@ -98,7 +114,9 @@ MDBottomNavigation TabStrip {
}
```

## NativeScript + Angular
##

### NativeScript + Angular

```typescript
import { NativeScriptMaterialTabsModule } from "@nativescript-community/ui-material-slider/angular";
Expand Down Expand Up @@ -149,7 +167,9 @@ import { NativeScriptMaterialTabsModule } from "@nativescript-community/ui-mater
</MDBottomNavigation>
```

## NativeScript + Vue
##

### NativeScript + Vue

```javascript
import BottomNavigation from '@nativescript-community/ui-material-bottom-navigation/vue';
Expand Down Expand Up @@ -194,7 +214,9 @@ Vue.use(BottomNavigation);
</MDBottomNavigation>
```

## Attributes
## API

### Attributes

| Name |Type| Description|
| ------------- |:-------------:| -----:|
Expand All @@ -206,11 +228,11 @@ Vue.use(BottomNavigation);
|tabsPosition | "top", "bottom" | Gets or sets the position state of the Tabs. Default value: top|
|iOSTabBarItemsAlignment | "leading", "justified", "center", "centerSelected" |iOS Only: Gets or set the MDCTabBarAlignment of the tab bar icons in iOS. Default value: justified|

## Events
### Events

|Name | Description|
| ------------- |:-------------:| -----:|
|selectedIndexChanged | Emitted when the selectedIndex property is changed.
|loaded | Emitted when the view is loaded.
|unloaded | Emitted when the view is unloaded.
|layoutChanged | Emitted when the layout bounds of a view changes due to layout processing.
| Name | Description |
| ------------- | -----:|
| selectedIndexChanged | Emitted when the selectedIndex property is changed. |
| loaded | Emitted when the view is loaded. |
| unloaded | Emitted when the view is unloaded. |
| layoutChanged | Emitted when the layout bounds of a view changes due to layout processing. |
Loading