diff --git a/packages/ui-react/src/components/Button/Button.tsx b/packages/ui-react/src/components/Button/Button.tsx index 0961aacc0..1792ada34 100644 --- a/packages/ui-react/src/components/Button/Button.tsx +++ b/packages/ui-react/src/components/Button/Button.tsx @@ -30,6 +30,7 @@ type Props = { id?: string; as?: 'button' | 'a'; activeClassname?: string; + target?: string; } & React.AriaAttributes; const Button: React.FC = ({ diff --git a/packages/ui-react/src/components/CTAButton/CTAButton.tsx b/packages/ui-react/src/components/CTAButton/CTAButton.tsx new file mode 100644 index 000000000..d99ce1f11 --- /dev/null +++ b/packages/ui-react/src/components/CTAButton/CTAButton.tsx @@ -0,0 +1,23 @@ +import React from 'react'; + +import useBreakpoint, { Breakpoint } from '../../hooks/useBreakpoint'; +import Button from '../Button/Button'; + +type Props = { + label: string; + url: string; +}; + +export type CTAItem = { + label: string; + url: string; + description?: string; +}; + +const CTAButton = ({ label, url }: Props) => { + const breakpoint = useBreakpoint(); + + return