🚧 Updated components
This commit is contained in:
parent
8e5a02d715
commit
fa1c9d1401
3 changed files with 20 additions and 5 deletions
|
@ -1,13 +1,25 @@
|
|||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import Icon from "../Icon";
|
||||
|
||||
const Blockquote = ({ type, children }) => {
|
||||
const Blockquote = ({ type, children, style }) => {
|
||||
return (
|
||||
<blockquote className={type}>
|
||||
<blockquote className={type} style={style}>
|
||||
{children}
|
||||
<Icon icon={type} className={"icon " + type} />
|
||||
</blockquote>
|
||||
);
|
||||
};
|
||||
|
||||
Blockquote.propTypes = {
|
||||
type: PropTypes.string.isRequired,
|
||||
children: PropTypes.node,
|
||||
style: PropTypes.object
|
||||
};
|
||||
|
||||
Blockquote.defaultProps = {
|
||||
type: "note",
|
||||
children: null,
|
||||
style: {}
|
||||
};
|
||||
export default Blockquote;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue