UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

5 lines (4 loc) 138 B
export const truncate = (str: string, length = 15) => { if (str.length > length) return str.substring(0, length) + '...' return str }