src/utils/tailwind-get-align-classes.tsexport function tailwindGetAlignClasses(className: string | null | undefined): string {if (!className) {return ''}const classList = className.split(' ')let updatedClasses = ''const textAlignMap: Record<string, string> = {'has-text-align-left': 'text-left','has-text-align-center': 'text-center','has-text-align-right': 'text-right','has-text-align-justify': 'text-justify',}classList.forEach((classItem) => {if (textAlignMap[classItem]) {updatedClasses += textAlignMap[classItem] + ' '
Showing the first 20 lines.
Get full code