1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/component-library
2023-05-02 09:50:37 -05:00
..
avatar-account Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-base Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-favicon Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-icon Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-network Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-token Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
badge-wrapper UX Multichain: updated ethereum logo icon (#18528) 2023-04-19 20:55:19 +05:30
banner-alert
banner-base
banner-tip
button Update Button prop name type to variant (#18774) 2023-04-26 11:17:25 -05:00
button-base
button-icon
button-link
button-primary
button-secondary
form-text-field
header-base Adding ModalHeader component and updating PopoverHeader stories (#18311) 2023-04-25 14:27:54 -07:00
help-text
icon Adding new icons (#18870) 2023-04-28 12:29:58 -07:00
input
label
modal-content
modal-header Adding ModalHeader component and updating PopoverHeader stories (#18311) 2023-04-25 14:27:54 -07:00
modal-overlay
picker-network UX: Multichain: Set a maximum width on the network picker (#18731) 2023-04-28 12:20:55 -05:00
popover-header Adding ModalHeader component and updating PopoverHeader stories (#18311) 2023-04-25 14:27:54 -07:00
tag
tag-url
text deprecation notice (#18859) 2023-04-27 16:28:39 -07:00
text-field UX Multichain: updated ethereum logo icon (#18528) 2023-04-19 20:55:19 +05:30
text-field-search
COMPONENT-LIBARY.stories.mdx
component-library-components.scss
index.js Update Button prop name type to variant (#18774) 2023-04-26 11:17:25 -05:00
README.md Improving code formatting in component-library readme (#18910) 2023-05-02 09:50:37 -05:00

Component Library

This folder contains design system components that are built 1:1 with the Figma DS Components UI kit and should be used where possible in all UI feature work.

Architecture

All components are built on top of the Box component and accept all Box component props

Layout

component-library components accept all utility props for layout

import { Text } from '../../component-library';

<Text marginBottom={4}>This text has a margin-bottom of 16px</Text>;

Polymorphic as prop

component-library components accept a polymorphic as prop to change the root html element of a component

import { Text } from '../../component-library';

<ul>
  <Text as="li">This renders as list item html element</Text>
</ul>;

TypeScript

We are currently in the process of migrating all component-library components to TypeScript. Feel free to contribute by creating a PR against one of these issues

Support

If internal folks have any questions please reach out the design system team via the internal slack channel #metamask-design-system 💁

DS components figma file (internal)