Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nordcom/nordstar-button

Package Overview
Dependencies
Maintainers
1
Versions
719
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nordcom/nordstar-button - npm Package Compare versions

Comparing version 0.0.40 to 0.0.41-unstable-20240309065310

20

dist/button.d.ts

@@ -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

2

dist/button.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc