@nordcom/nordstar-button
Advanced tools
Comparing version 0.0.40 to 0.0.41-unstable-20240309065310
@@ -1,12 +0,26 @@ | ||
import type { As } from '@nordcom/nordstar-system'; | ||
import type { As, NordstarColor } from '@nordcom/nordstar-system'; | ||
import type { ReactNode } from 'react'; | ||
export type ButtonProps = { | ||
as?: As; | ||
variant?: 'solid' | 'outline'; | ||
color?: 'default' | 'primary' | 'secondary'; | ||
variant?: 'outline' | 'solid'; | ||
color?: NordstarColor; | ||
icon?: ReactNode; | ||
disabled?: boolean; | ||
}; | ||
/** | ||
* `<Button/>`, a generalized button element. | ||
* | ||
* @param {object} props - `<Button/>` props. | ||
* @param {As} [props.as] - The element to render the component as. | ||
* @param {'outline' | 'solid'} [props.variant='outline'] - The variant. | ||
* @param {NordstarColor} [props.color='default'] - The color scheme. | ||
* @returns {React.ReactNode} The `<Button/>` component. | ||
* | ||
* @example | ||
* ```tsx | ||
* <Button>Button</Button> | ||
* ``` | ||
*/ | ||
declare const Button: import("@nordcom/nordstar-system").InternalForwardRefRenderFunction<"button", ButtonProps, never>; | ||
export default Button; | ||
//# sourceMappingURL=button.d.ts.map |
@@ -5,3 +5,3 @@ import './button.css'; | ||
const container = "_container_glyo6_1"; | ||
const container = "_container_14t4f_1"; | ||
const styles = { | ||
@@ -8,0 +8,0 @@ container: container |
@@ -5,4 +5,4 @@ { | ||
"type": "module", | ||
"version": "0.0.40", | ||
"description": "A component for triggering actionable events on an interaction with it (or as most would call it, a button).", | ||
"version": "0.0.41-unstable-20240309065310", | ||
"description": "Nordstar Button", | ||
"packageManager": "npm", | ||
@@ -70,3 +70,3 @@ "engines": { | ||
"dependencies": { | ||
"@nordcom/nordstar-system": "0.0.40" | ||
"@nordcom/nordstar-system": "0.0.41-unstable-20240309065310" | ||
}, | ||
@@ -73,0 +73,0 @@ "peerDependencies": { |
# @nordcom/nordstar-button | ||
A component for triggering actionable events on an interaction with it (or as most would call it, a `button`). | ||
A button component for the Nordstar design system. | ||
@@ -5,0 +5,0 @@ ## Installation |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7571
146
+ Added@nordcom/nordstar-system@0.0.41-unstable-20240309065310(transitive)
- Removed@nordcom/nordstar-system@0.0.40(transitive)
Updated@nordcom/nordstar-system@0.0.41-unstable-20240309065310