diff options
Diffstat (limited to 'src/settings/components/ui')
-rw-r--r-- | src/settings/components/ui/delete-button.jsx | 12 | ||||
-rw-r--r-- | src/settings/components/ui/delete-button.scss | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/settings/components/ui/delete-button.jsx b/src/settings/components/ui/delete-button.jsx new file mode 100644 index 0000000..8077a76 --- /dev/null +++ b/src/settings/components/ui/delete-button.jsx @@ -0,0 +1,12 @@ +import './delete-button.scss'; +import { h, Component } from 'preact'; + +class DeleteButton extends Component { + render() { + return <input + className='ui-delete-button' type='button' value='✖' + {...this.props} />; + } +} + +export default DeleteButton; diff --git a/src/settings/components/ui/delete-button.scss b/src/settings/components/ui/delete-button.scss new file mode 100644 index 0000000..7aa2f39 --- /dev/null +++ b/src/settings/components/ui/delete-button.scss @@ -0,0 +1,12 @@ + +.ui-delete-button { + border: none; + padding: 4; + display: inline; + background: none; + color: red; + + &:hover { + color: darkred; + } +} |