@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
29 lines (27 loc) • 698 B
text/typescript
/**
* *
* @class BorderStyle
* @description BorderStyle class is used for defining the border.
* @param {number} borderWidth
* @param {string} borderStyle
* @param {string} borderColor
*/
export class BorderStyle {
borderWidth?: number;
borderStyle?: "solid" | "dotted" | "dashed";
borderColor?: string;
constructor({
borderWidth = 0,
borderStyle = "solid",
borderColor = "transparent",
}: BorderStyleInterface) {
this.borderWidth = borderWidth;
this.borderStyle = borderStyle;
this.borderColor = borderColor;
}
}
export interface BorderStyleInterface {
borderWidth?: number;
borderStyle?: "solid" | "dotted" | "dashed";
borderColor?: string;
}