Skip to content

Instantly share code, notes, and snippets.

@manoelneto
Created August 5, 2018 15:08
Show Gist options
  • Save manoelneto/d72042c92474912c727392558f01aa94 to your computer and use it in GitHub Desktop.
Save manoelneto/d72042c92474912c727392558f01aa94 to your computer and use it in GitHub Desktop.
import React from 'react';
export default ({value}) => (
<div>
<div style={{
width: `${Math.min(value, 100)}%`,
height: 20,
background: "red",
}}></div>
</div>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment