import { useRef, useState } from 'react';
import classNames from 'classnames';
import {
MdFormatAlignCenter,
MdFormatAlignJustify,
MdFormatAlignLeft,
MdFormatAlignRight,
MdOutlineWidgets,
} from 'react-icons/md';
import {
Heading,
Text,
View,
Card,
Flex,
CheckboxField,
RadioGroupField,
Radio,
SliderField,
SearchField,
SwitchField,
Tabs,
TabItem,
Badge,
ToggleButtonGroup,
ToggleButton,
Button,
Pagination,
usePagination,
} from '@aws-amplify/ui-react';
import { HomeCTA } from '@/components/home/HomeCTA';
import { useIntersectionObserver } from '@/components/useIntersection';
import { upperFirst } from 'lodash';
import { trackScroll } from '@/utils/track';
const Center = ({ children }) => (
{children}
);
const Preview = () => {
const [exclusiveValue, setExclusiveValue] = useState('align-left');
const paginationProps = usePagination({
totalPages: 99,
currentPage: 12,
});
const direction = ['column', 'column', 'row'];
return (
setExclusiveValue(value)}
>
Donuts{' '}
new
}
>
HTMLCSSjavascript
);
};
export const ComingSoonPrimitiveSection = ({ platform }) => {
return (
{upperFirst(platform)} primitive components{' '}
coming soon!
);
};
export const PrimitiveSection = ({ platform, ...rest }) => {
const ref = useRef(null);
const entry = useIntersectionObserver(ref, {
threshold: 0.125,
freezeOnceVisible: true,
});
const isVisible = !!entry?.isIntersecting;
if (isVisible) {
trackScroll('Home#Primitive');
}
return (
Speed up development with over 40 production-ready components
Amplify UI components are built with plain React and CSS to
provide a solid foundation for building UIs and design systems.
These components are themeable, responsive, composable, and
accessible. They play nicely with other UI components or styling
frameworks.
View all components
);
};