fannypack
Version:
An accessible, composable, and friendly React UI Kit
26 lines (20 loc) • 426 B
JavaScript
// @flow
import React, { type Node } from 'react';
import _Label from './styled';
type Props = {
as?: any,
children: Node,
className?: string,
htmlFor?: string
};
const Label = ({ children, className, ...props }: Props) => (
<_Label fontWeight="600" marginBottom="xxxsmall" {...props}>
{children}
</_Label>
);
Label.defaultProps = {
as: null,
htmlFor: null,
className: null
};
export default Label;