generated:catalog.entry.fab.title
generated:catalog.entry.fab.description
@xngui/components/fab@xngui/components/fabchrome:demo.section
chrome:demo.preview
import { Component } from '@angular/core';
import { XFab } from '@xngui/components/fab';
import { XIcon } from '@xngui/icons';
@Component({
selector: 'app-example',
imports: [XFab, XIcon],
templateUrl: './fab.component.html',
})
export class ExampleComponent {
protected onClicked(event: { originalEvent: MouseEvent }): void {
// handle click
}
protected onFocused(): void {
// handle focus
}
protected onBlurred(): void {
// handle blur
}
}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-fab
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
variantXVariant—Color role — falls back to XConfigService when unset.
appearanceXAppearance—Surface treatment — falls back to XConfigService when unset.
disabledboolean—Prevents interaction and sets `aria-disabled`.
loadingbooleanfalseShows spinner and blocks interaction — sets `aria-busy`.
rippleboolean—Material-style press ripple — falls back to XConfigService when unset.
ariaLabelstring—Accessible name — required.
labelstring—Optional extended FAB label rendered after the projected icon.