A customizable button library for Angular applications.
Import the MedatusButtonModule
in your Angular application:
import { MedatusButtonModule } from "medatus-button";
@NgModule({
imports: [MedatusButtonModule],
// ...
})
export class AppModule {}
Use the medatus-button
directive in your template:
<button medatus-button>Click me</button>
The medatus-button
directive supports several inputs for customization:
This input is required for the directive to work. It should be set to a string value.
This input sets the size of the button. It can be one of the following values:
small
medium
(default)large
This input sets the type of the button. It can be one of the following values:
filled
(default)
This input sets the color of the button. It can be any valid CSS color value. The default value is primary
.
This input sets the shape of the button. It can be one of the following values:
rounded
square
pilled
(default)
The medatus-button
directive supports the following events:
mouseenter
andmouseleave
for hover statemousedown
andmouseup
for active statefocus-visible
andblur
for focus state
Here is an example of a customized medatus-button
:
<button
medatus-button
size="large"
type="outline"
color="primary"
shape="rounded"
>
Click me
</button>