fbredius/storybook

View on GitHub
lib/components/src/typography/elements/Blockquote.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import { styled } from '@storybook/theming';
import { withReset, withMargin } from '../lib/common';

export const Blockquote = styled.blockquote(withReset, withMargin, ({ theme }) => ({
  borderLeft: `4px solid ${theme.color.medium}`,
  padding: '0 15px',
  color: theme.color.dark,
  '& > :first-of-type': {
    marginTop: 0,
  },
  '& > :last-child': {
    marginBottom: 0,
  },
}));