@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
28 lines (27 loc) • 863 B
TypeScript
export interface SocialLinksProps {
/** The optional label for the social links */
label?: string;
/** Whether the social media icons are inverted and have a background */
inverted?: boolean;
/** The color theme of the social media icons */
theme?: "c-primary" | "c-primary-alt";
/** The social links to display */
items: SocialLinkProps[];
}
declare const SocialLinks: {
(socialLinks: SocialLinksProps): any;
defaultProps: {
label: string;
theme: string;
inverted: boolean;
};
};
export interface SocialLinkProps {
/** The URL for the link */
href: string;
/** The type of social link and the icon name */
linkType: "facebook" | "twitter" | "linkedin" | "youtube" | "instagram" | "vimeo";
/** Alt text for accessibility */
altText: string;
}
export default SocialLinks;