import { Link, Flex, View } from '@aws-amplify/ui-react';
import { Fragment } from '@/components/Fragment';
import { ThemeAlert } from '@/components/ThemeAlert';
import { GITHUB_REPO_FILE } from '@/data/links';
import { DesignTokenIcon } from '@/components/Icons';

### Theme

<ThemeAlert />

You can customize the appearance of all {props.component} components in your application with a [Theme](/theming).

<Link
  className="docs-component-link"
  href={`${GITHUB_REPO_FILE}packages/ui/src/theme/tokens/components/${
    props.link ||
    props.component.charAt(0).toLowerCase() + props.component.slice(1)
  }.ts`}
  isExternal
>
  <DesignTokenIcon ariaLabel="theme-source" marginInlineEnd="0.5rem" />
  {props.component} Theme Source
</Link>

<View backgroundColor="white">{props.children}</View>
