is a reusable button component with customizable properties. It can be used as a regular button, a flat button, or a text button.
- Decorators
@Component - Selectors
button[ng-doc-button ]a[ng-doc-button ]button[ng-doc-button-flat ]a[ng-doc-button-flat ]button[ng-doc-button-text ]a[ng-doc-button-text ]
DeclarationTypeScript
@Component ({ … })
export class NgDocButtonComponent { … }Members
Properties3 | |
color: | Color of the button. Can be 'primary', 'secondary', etc. Default is 'primary'. |
rounded: | Whether the button is rounded or not. Default is false. |
size: | Size of the button. Can be 'small', 'medium', or 'large'. Default is 'small'. |
No members match.
Example usage
<button ng-doc-button [size]="'large'" [color]="'secondary'" [rounded]="true">Click me</button>