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
Albert Olivé ebc887021e
[MMI] Added code fences for account menu (#17965)
* Added code fences for account menu

* updates test and messages json

* clean up

* icons

* icons color correct

* icon size fix

* icon size fix

* adds mmi entries and updates to the new IconName

* clean up

* lint

* clean up

* prettier

* prettier

* camel case

---------

Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-05-17 16:58:00 +02:00
..
avatar-account
avatar-base Migrates avatar base to TypeScript (#18494) 2023-05-03 17:30:07 -07:00
avatar-favicon
avatar-icon
avatar-network
avatar-token
badge-wrapper
banner-alert
banner-base
banner-tip
button
button-base
button-icon
button-link
button-primary
button-secondary
form-text-field
header-base UX: Multichain: Implement Account Details Popover (#18811) 2023-05-03 12:09:13 -05:00
help-text
icon [MMI] Added code fences for account menu (#17965) 2023-05-17 16:58:00 +02:00
input
label
modal-content
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
popover-header
tag
tag-url
text Part of #18714 and #17670:set-approval-for-all-warnings (#19115) 2023-05-15 15:40:00 -07:00
text-field
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
index.js Adding ModalFocus component (#18979) 2023-05-09 14:33:29 -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)