Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulled in AddonsGrid-Title component from frontpage #317

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/components/marketing/Title.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';

import { Title } from './Title';

export default {
title: 'Marketing/Title',
component: Title,
};

export const Default = () => <Title>Title</Title>;
12 changes: 12 additions & 0 deletions src/components/marketing/Title.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React, { ComponentProps, FC } from 'react';
import { styled } from '@storybook/theming';
import { typography, color } from '../shared/styles';

const StyledTitle = styled.h3`
font-weight: ${typography.weight.black};
font-size: ${typography.size.m2}px;
line-height: ${typography.size.m3}px;
color: ${color.darkest};
`;

export const Title: FC<ComponentProps<typeof StyledTitle>> = (props) => <StyledTitle {...props} />;