Skip to content

Commit

Permalink
docs(HTML Elements): move mdx of unstyled and unsupported to elements…
Browse files Browse the repository at this point in the history
….mdx (#2154)
  • Loading branch information
langz authored and tujoworker committed May 31, 2023
1 parent 8c96969 commit 0982c3e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 25 deletions.
24 changes: 20 additions & 4 deletions packages/dnb-design-system-portal/src/docs/uilib/elements.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ order: 6
---

import CodeBlock from 'dnb-design-system-portal/src/shared/tags/CodeBlock'
import NotSupportedElements from 'Docs/uilib/elements/not-supported'
import UnstyledElementsDemos from 'Docs/uilib/elements/unstyled'
import ListSummaryFromPages from 'dnb-design-system-portal/src/shared/parts/ListSummaryFromPages'
import { StyledComponentsExample } from 'Docs/uilib/Examples'
import { UnstyledExample } from 'Docs/uilib/elements/unstyled/Examples'

# HTML Elements

Expand Down Expand Up @@ -52,8 +51,25 @@ They work seamlessly with Styled Components (emotion) as well:

<StyledComponentsExample />

<UnstyledElementsDemos />
## Unstyled HTML Elements

In order to use the inherited [Skeleton](/uilib/components/skeleton), there are a number of un-styled HTML elements, that do inherit and react to the Skeleton Provider.

```jsx
import { Span, Div } from '@dnb/eufemia/elements'
```

- `Span`
- `Div`

### Example usage of span

<UnstyledExample />

---

<NotSupportedElements />
## Missing HTML Elements

Not every commonly used HTML Elements are included yet in the `@dnb/eufemia`. This decision is made by the DNB UX Team and relies on a principle to make UX design as good as possible, consistent and more thoughtful towards a broader customer target.

- For the `select` element, use the [**Dropdown**](/uilib/components/dropdown) component.

This file was deleted.

This file was deleted.

0 comments on commit 0982c3e

Please sign in to comment.