Skip to content

Commit 367d8f6

Browse files
paolommjTakeno
authored andcommitted
possibilità di aggiungere attributi extra
1 parent 5a87b91 commit 367d8f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Timeline/Timeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import classnames from 'classnames';
44

5-
const Timeline = ({children, title, background, color}) => {
5+
const Timeline = ({children, title, background, color, ...rest}) => {
66
const pointClassname = classnames(
77
'Timeline-point-content',
88
background,
99
color,
1010
);
1111
return (
12-
<div className="Timeline u-layout-prose u-layoutCenter">
12+
<div className="Timeline u-layout-prose u-layoutCenter" {...rest}>
1313
<div className="Timeline-point">
1414
<div className={pointClassname}>{title}</div>
1515
</div>

src/components/Timeline/TimelineContent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
const TimelineContent = ({children, color, background}) => (
5-
<div className={`Timeline-content ${color}`}>
4+
const TimelineContent = ({children, color, background, ...rest}) => (
5+
<div className={`Timeline-content ${color}`} {...rest}>
66
<div
77
className={`Timeline-arrow Icon-drop-down ${background.replace(
88
'background',

0 commit comments

Comments
 (0)