TabCloseButton
TabCloseButton is a compact Button displaying a "×" glyph, sized to sit flush inside a tab header. The Tab layout uses it internally for closeable tabs; you'd reach for it directly only when assembling your own tab-strip variant.
Usage
typescript
import { Event } from '@jimka/typescript-ui/core';
import { TabCloseButton } from '@jimka/typescript-ui/component/button';
const closeBtn = TabCloseButton();
Event.addListener(closeBtn, 'click', () => closeTab());
tabHeader.addComponent(closeBtn);Notes
- Inherits all
Buttonstyling — themed viabutton.*tokens. - Pre-sized to the standard tab-header glyph footprint; setting an explicit
setPreferredSizeis rarely needed.
See also
- API: TabCloseButton
Tablayout — primary consumerButton