@nuitral/types
Version:
Type definitions for nuitral components
15 lines (14 loc) • 491 B
TypeScript
/**
* Defines the type for classes.
*
* Type:
* - `string`: A single class name as a string.
* - `string[]`: An array of class names.
*/
export type NuitralClass = string | string[];
/**
* Defines the position of the icon within the UI component, which can be one of the following:
* - `'left'`: The icon is placed to the left of the component content.
* - `'right'`: The icon is placed to the right of the component content.
*/
export type NuitralIconPosition = 'left' | 'right';