fannypack
Version:
An accessible, composable, and friendly React UI Kit
25 lines (19 loc) • 445 B
JavaScript
// @flow
import React, { type Node } from 'react';
import type { Palette } from '../types';
import _Paragraph from './styled';
type Props = {
children: Node,
className?: string,
color?: Palette
};
const Paragraph = ({ children, className, ...props }: Props) => (
<_Paragraph className={className} {...props}>
{children}
</_Paragraph>
);
Paragraph.defaultProps = {
className: null,
color: null
};
export default Paragraph;