phx-react
Version:
PHX REACT
12 lines • 433 B
JavaScript
import React from 'react';
export const PHXDivider = ({ borderColor }) => {
const getBorderColor = () => {
if (borderColor === 'secondary')
return 'border-gray-400';
if (borderColor === 'tertiary')
return 'border-gray-600';
return 'border-gray-200';
};
return React.createElement("div", { className: `border-b ${getBorderColor()}` });
};
//# sourceMappingURL=divider.js.map