src/app/components/use-button/use-button.ts
An interface representing the details of the button
Properties |
icon |
icon:
|
Type : string
|
Optional |
Icon name of the icon to be displayed on the button |
route |
route:
|
Type : string
|
Optional |
Route for the page to redirect to when button is clicked |
text |
text:
|
Type : string
|
Label on the button |
url |
url:
|
Type : string
|
Optional |
URL for the page to redirect to when button is clicked |
export interface UseButton {
/** Label on the button */
text: string;
/** URL for the page to redirect to when button is clicked */
url?: string;
/** Route for the page to redirect to when button is clicked */
route?: string;
/** Icon name of the icon to be displayed on the button */
icon?: string;
}