aboutsummaryrefslogtreecommitdiffstats
path: root/src/react/TileFooter.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/react/TileFooter.js')
-rw-r--r--src/react/TileFooter.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/react/TileFooter.js b/src/react/TileFooter.js
new file mode 100644
index 0000000..3a56908
--- /dev/null
+++ b/src/react/TileFooter.js
@@ -0,0 +1,10 @@
+import React, {Children} from 'react';
+import TileFooterCell from './TileFooterCell.js';
+
+const TileFooter = ({children, align}) => (
+ <div className={`sdc-tile-footer ${align === 'center' ? 'centered' : ''}`}>
+ {Children.toArray(children).filter(e => e.type === TileFooterCell)}
+ </div>
+);
+
+export default TileFooter;