@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
41 lines (28 loc) • 889 B
Markdown
title: 'React & TypeScript'
version: 10.104.0
generatedAt: 2026-04-17T18:46:12.816Z
checksum: 090b7d977ba4be5e2c4c04d199a30a4048416c59f443a56985df2f80629d9c40
# React JS for the web
The most basic way to use the `@dnb/eufemia` is like this:
## Basic Buttons
```tsx
render(<Button text="Basic Button" />)
```
### Importing the Components
To make the [Button](/uilib/components/button) component work, we have to import it as well:
```js
import { Button } from '@dnb/eufemia'
```
And here is an example with several imports:
```js
import { Button, Icon } from '@dnb/eufemia/components'
import { H1, P, Link } from '@dnb/eufemia'
import { hamburger as hamburgerIcon } from '@dnb/eufemia/icons'
```
### Events
```tsx
render(<Button text="Button" on_click={() => console.log('click')} />)
```
Now, let's jump to the [Button Docs](/uilib/components/button) for more details.