@workday/canvas-kit-preview-react
Version:
Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.
71 lines • 2.21 kB
TypeScript
export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
/**
* Determines the max width of the pill. If the pill text is longer than the max width,
* text will be truncated and a tooltip will show the rest of the content when hovered over
*/
maxWidth: string | number;
/**
* Use to disable a pill.
*/
disabled: boolean;
/**
* ID used to add accessibility labels to pill elements.
* @default `useUniqueId()`
*/
id: string;
}> & {} & {}) | undefined) => {
state: {
id: string;
/**
* Determines the max width of the pill. If the pill text is longer than the max width,
* text will be truncated and a tooltip will show the rest of the content when hovered over
*/
maxWidth: string | number;
/**
* Use to disable a pill.
*/
disabled: boolean;
};
events: {};
}) & import("@workday/canvas-kit-react/common").ModelExtras<{
/**
* Determines the max width of the pill. If the pill text is longer than the max width,
* text will be truncated and a tooltip will show the rest of the content when hovered over
*/
maxWidth: string | number;
/**
* Use to disable a pill.
*/
disabled: boolean;
/**
* ID used to add accessibility labels to pill elements.
* @default `useUniqueId()`
*/
id: string;
}, {}, {
id: string;
/**
* Determines the max width of the pill. If the pill text is longer than the max width,
* text will be truncated and a tooltip will show the rest of the content when hovered over
*/
maxWidth: string | number;
/**
* Use to disable a pill.
*/
disabled: boolean;
}, {}, {
state: {
id: string;
/**
* Determines the max width of the pill. If the pill text is longer than the max width,
* text will be truncated and a tooltip will show the rest of the content when hovered over
*/
maxWidth: string | number;
/**
* Use to disable a pill.
*/
disabled: boolean;
};
events: {};
}>;
//# sourceMappingURL=usePillModel.d.ts.map