refactor(components): remove exported "props"

Closes #17

- Forward events
- Adds style prop, removes exported props
This commit is contained in:
Eric Liu 2019-12-22 09:29:45 -08:00
commit 1286b9901d
31 changed files with 120 additions and 105 deletions

View file

@ -14,7 +14,7 @@
export let hasIconOnly = false;
export let tooltipPosition = undefined;
export let tooltipAlignment = undefined;
export let props = {};
export let style = undefined;
import { cx } from '../../lib';
@ -37,13 +37,13 @@
className
);
const buttonProps = {
...props,
role: 'button',
type: href && !disabled ? undefined : type,
tabindex,
class: _class,
disabled,
type: href && !disabled ? undefined : type,
role: 'button',
href
href,
style
};
</script>