From 8ef31daca8d53d67a52e96170c95a3e66f1628cc Mon Sep 17 00:00:00 2001 From: Karan Randhawa Date: Fri, 10 Jan 2025 12:00:47 +0530 Subject: [PATCH 1/2] Trim label in NChip --- src/NChip/NChip.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NChip/NChip.tsx b/src/NChip/NChip.tsx index e546073..0b65696 100644 --- a/src/NChip/NChip.tsx +++ b/src/NChip/NChip.tsx @@ -2,6 +2,7 @@ import React from 'react'; import classNames from 'classnames'; interface NChipProps { + trim?: boolean; searchTerm: string; onDelete: () => void; onClick: () => void; @@ -12,6 +13,7 @@ interface NChipProps { } const NChip: React.FC = ({ + trim = true, searchTerm, onDelete, onClick, @@ -23,7 +25,7 @@ const NChip: React.FC = ({ return (