npm install --save nordnet-ui-kit
import { Button } from 'nordnet-ui-kit';
const button = (
<Button primary type="success">Success</Button>
);
ReactDOM.render(button, mountNode);
In use:
<Alert type="success" header="Well done!">Your message was sent</Alert>
The <Alert />
component takes the following props:
type
: eithersuccess
,warning
ordanger
header
dismissable
dismissed
In use:
<Button primary type="danger">Delete</Button>
The <Button />
component takes the following props:
primary
secondary
link
type
: eithersuccess
,warning
ordanger
href
disabled
In use:
<Checkbox label="Check me out" />
The <Checkbox />
component takes the following props:
checked
disabled
value
label
In use:
const toggle = <Button secondary>Toggle Collapsible</Button>;
<Collapsible toggle={ toggle }>
<div>
Hello there
</div>
</Collapsible>
The <Collapsible />
component takes the following props:
toggle
collapsed
In use:
<Dropdown toggle="Toggle dropdown" actions={[{
label: 'Action 1',
action: () => alert('You pressed action 1'),
}, {
label: 'Action 2',
action: () => alert('You pressed action 2'),
}]} />
The <Dropdown />
component takes the following props:
toggle
actions
actionsOpen
In use:
<Icon type="checkmark" stroke="green" width={ 16 } height={ 16 } />
The <Icon />
component takes the following props:
type
fill
stroke
strokeWidth
width
height
componentClass
In use:
<Input type="text" label="Text input" placeholder="Enter value" />
The <Input />
component takes the following props:
type
label
placeholder
id
value
onFocus
onBlur
onChange
hasSuccess
hasError
hasWarning
helpText
options
In use:
<Pane tabs={[{
label: 'Tab 1',
body: <span>This is tab 1!</span>
}, {
label: 'Tab 2',
body: <span>This is tab 2!</span>
}, {
label: 'Tab 3',
body: <span>This is tab 3!</span>
}]} />
The <Pane />
component takes the following props:
tabs
In use:
<Radio label="Check me out" />
The <Radio />
component takes the following props:
checked
disabled
value
label
This open source project released by Nordnet is licensed under the MIT license.