Codemods

The American Express Design System provides a unified language for designing American Express websites and experiences. The design system provides design resources that match our coded components and are aligned with the American Express brand. Included are colors, components, icons and glyphs, type styles, and graphic assets to get you up and running quickly.

Back to All Codemods

TabContentGroup Transform

TabContentGroup is deprecated.

Automatic Changes

  • Removes all props from TabContentGroup and transforms to a div element.

For example:

import { TabContentGroup } from '@americanexpress/dls-react6';

export default function Page() {

return (

<TabContentGroup theme={{ color: 'red' }} {...otherProps}>

{/** Children */}

</TabContentGroup>

);

}

Transforms into:

import { TabContentGroup } from '@americanexpress/dls-react';

export default function Page() {

return <div {...otherProps}>{/** Children */}</div>;

}

Manual Changes

Update Tab Styles

Since the TabContentGroup component is deprecated, the styles applied to the TabContentGroup and its children, typically TabContent, will most likely need to be updated.

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.