1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/components/component-library
2023-05-19 13:20:15 -07:00
..
avatar-account Updating Avatar components to forward refs (#18678) 2023-04-21 08:51:34 -07:00
avatar-base Migrates avatar base to TypeScript (#18494) 2023-05-03 17:30:07 -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 Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
banner-base Deprecated Icon and ButtonIcon clean up (#19220) 2023-05-19 10:33:02 -07:00
banner-tip Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
button Update Button prop name type to variant (#18774) 2023-04-26 11:17:25 -05:00
button-base Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
button-icon Deprecated Icon and ButtonIcon clean up (#19220) 2023-05-19 10:33:02 -07:00
button-link Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
button-primary Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
button-secondary Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
form-text-field Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
header-base UX: Multichain: Implement Account Details Popover (#18811) 2023-05-03 12:09:13 -05:00
help-text Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
icon Deprecated Icon and ButtonIcon clean up (#19220) 2023-05-19 10:33:02 -07:00
input update text component color to use box color (#18246) 2023-03-23 13:00:37 -07:00
label Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
modal Adding Modal and updating ModalContent component (#19020) 2023-05-19 13:20:15 -07:00
modal-content Adding Modal and updating ModalContent component (#19020) 2023-05-19 13:20:15 -07:00
modal-focus Adding ModalFocus component (#18979) 2023-05-09 14:33:29 -07:00
modal-header Some style, accessibility and sematic html updates to modal sub components (#19034) 2023-05-09 14:09:10 -07:00
modal-overlay Some style, accessibility and sematic html updates to modal sub components (#19034) 2023-05-09 14:09:10 -07:00
picker-network UX: Multichain: Set a maximum width on the network picker (#18731) 2023-04-28 12:20:55 -05:00
popover Add DS Popover component (#18805) 2023-05-19 11:49:53 -07:00
popover-header Add DS Popover component (#18805) 2023-05-19 11:49:53 -07:00
tag update text component color to use box color (#18246) 2023-03-23 13:00:37 -07:00
tag-url Updating icon imports to TS version in component-library folder (#18449) 2023-04-05 09:11:10 -07:00
text Part of #18714 and #17670:set-approval-for-all-warnings (#19115) 2023-05-15 15:40:00 -07:00
text-field Deprecated Icon and ButtonIcon clean up (#19220) 2023-05-19 10:33:02 -07:00
text-field-search Fixes clear button size TextFieldSearch (#19153) 2023-05-16 13:15:13 -07:00
COMPONENT-LIBARY.stories.mdx
component-library-components.scss Add DS Popover component (#18805) 2023-05-19 11:49:53 -07:00
index.js Adding Modal and updating ModalContent component (#19020) 2023-05-19 13:20:15 -07: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)