keystone
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
21 lines (16 loc) • 443 B
JavaScript
import React from 'react';
import { Button } from '../../admin/client/App/elemental';
// NOTE marginBottom of 1px stops things jumping around
// TODO find out why this is necessary
function CollapsedFieldLabel ({ style, ...props }) {
const __style__ = {
marginBottom: 1,
paddingLeft: 0,
paddingRight: 0,
...style,
};
return (
<Button variant="link" style={__style__} {...props} />
);
};
module.exports = CollapsedFieldLabel;