UNPKG

@swrve/core

Version:

Core set of Swrve UI Components

17 lines (12 loc) 809 B
# Button Component This component renders a simple button element. The component can be configured to render a particular button variant (e.g. primary, secondary, etc.). The theme prop determines which variant of button is rendered. Additionally, a selected prop can be passed to the component to indicate whether or not the button has been selected. Currently, selected styling is only supported for the neutral-outline theme, although it is trivial to extend selected styling for other themes. Any props not explicitly specified within the component API are passed through and spread over the button element rendered within. This allows the component to support generic and button-specific props alike, like type or disabled. For more detailed documentation, see the storybook entry for this component.