File size: 2,797 Bytes
93dd899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
title: UI Components Overview
sidebar_label: Overview
sidebar_position: 0
---

<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

import { ComponentIndex } from '@site/src/components/ui-components';
import componentData from '../_versioned_data/static/data/components.json';

# UI Components

<ComponentIndex data={componentData} />

---

## Design System

A design system is a complete set of standards intended to manage design at scale using reusable components and patterns.

The Superset Design System uses [Atomic Design](https://bradfrost.com/blog/post/atomic-web-design/) principles with adapted terminology:

| Atomic Design       |    Atoms    | Molecules  | Organisms | Templates | Pages / Screens |
| ------------------- | :---------: | :--------: | :-------: | :-------: | :-------------: |
| **Superset Design** | Foundations | Components | Patterns  | Templates |    Features     |

<img
  src="/img/atomic-design.png"
  alt="Atoms = Foundations, Molecules = Components, Organisms = Patterns, Templates = Templates, Pages / Screens = Features"
  style={{ maxWidth: '100%' }}
/>

## Usage

All components are exported from `@superset-ui/core/components`:

```tsx
import { Button, Modal, Select } from '@superset-ui/core/components';
```

## Contributing

This documentation is auto-generated from Storybook stories. To add or update component documentation:

1. Create or update the component's `.stories.tsx` file
2. Add a descriptive `title` and `description` in the story meta
3. Export an interactive story with `args` for configurable props
4. Run `yarn generate:superset-components` in the `docs/` directory

:::info Work in Progress
This component library is actively being documented. See the [Components TODO](./TODO.md) page for a list of components awaiting documentation.
:::

---

_Auto-generated from Storybook stories in the [Design System/Introduction](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/components/DesignSystem.stories.tsx) story._