@progress/kendo-angular-buttons
Version:
Buttons Package for Angular
42 lines (41 loc) • 1.49 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { SVGIcon } from '@progress/kendo-svg-icons';
/**
* Specifies how the items are sized within the SegmentedControl.
* - `compact`—Items take up only the space they need.
* - `stretch`—Items stretch to fill the full width of the control.
*/
export type SegmentedControlLayout = 'compact' | 'stretch';
/**
* Specifies the possible sizes of the SegmentedControl.
*/
export type SegmentedControlSize = 'small' | 'medium' | 'large';
/**
* Represents the settings for an item in the `SegmentedControlComponent`.
*/
export interface SegmentedItemSettings {
/**
* Specifies the name of an existing font icon in the Kendo UI theme.
*/
icon?: string;
/**
* Defines the SVG icon to render inside the button.
*/
svgIcon?: SVGIcon;
/**
* Specifies the text content of the button.
*/
text?: string;
/**
* Determines whether the button is disabled.
*/
disabled?: boolean;
/**
* Sets the `title` attribute of the button. When no `text` is provided,
* the `title` value also renders as the `aria-label` attribute.
*/
title?: string;
}