1.0.0 • Published 17 days ago

@povsicoenpm/magnam-cum-occaecati v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

Version Chat

Material Components for the web

Material Components for the web helps developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional web projects.

Material Web strives to seamlessly incorporate into a wider range of usage contexts, from simple static websites to complex, JavaScript-heavy applications to hybrid client/server rendering systems. In short, whether you're already heavily invested in another framework or not, it should be easy to incorporate Material Components into your site in a lightweight, idiomatic fashion.

Material Components for the web is the successor to Material Design Lite. In addition to implementing the Material Design guidelines, it provides more flexible theming customization, not only in terms of color, but also typography, shape, states, and more. It is also specifically architected for adaptability to various major web frameworks.

NOTE: Material Components Web tends to release breaking changes on a monthly basis, but follows semver so you can control when you incorporate them. We typically follow a 2-week release schedule which includes one major release per month with breaking changes, and intermediate patch releases with bug fixes.

Important links

Quick start

Using via CDN

<!-- Required styles for Material Web -->
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">

<!-- Render textfield component -->
<label class="mdc-text-field mdc-text-field--filled">
  <span class="mdc-text-field__ripple"></span>
  <span class="mdc-floating-label" id="my-label">Label</span>
  <input type="text" class="mdc-text-field__input" aria-labelledby="my-label">
  <span class="mdc-line-ripple"></span>
</label>

<!-- Required Material Web JavaScript library -->
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<!-- Instantiate single textfield component rendered in the document -->
<script>
  mdc.textField.MDCTextField.attachTo(document.querySelector<HTMLElement>('.mdc-text-field'));
</script>

Please see quick start demo on codepen for full example.

Using NPM

This guide assumes you have webpack configured to compile Sass into CSS. To configure webpack, please see the full getting started guide. You can also see the final code and result in the Material Starter Kit.

Install textfield node module to your project.

npm install @material/textfield

HTML

Sample usage of text field component. Please see Textfield component page for more options.

<label class="mdc-text-field mdc-text-field--filled">
  <span class="mdc-text-field__ripple"></span>
  <input type="text" class="mdc-text-field__input" aria-labelledby="my-label">
  <span class="mdc-floating-label" id="my-label">Label</span>
  <span class="mdc-line-ripple"></span>
</label>

CSS

Load styles required for text field component.

@use "@material/floating-label/mdc-floating-label";
@use "@material/line-ripple/mdc-line-ripple";
@use "@material/notched-outline/mdc-notched-outline";
@use "@material/textfield";

@include textfield.core-styles;

JavaScript

Import MDCTextField module to instantiate text field component.

import {MDCTextField} from '@material/textfield';
const textField = new MDCTextField(document.querySelector<HTMLElement>('.mdc-text-field'));

This'll initialize text field component on a single .mdc-text-field element.

Please see quick start demo on glitch for full example.

Need help?

We're constantly trying to improve our components. If Github Issues don't fit your needs, then please visit us on our Discord Channel.

unicodestartisObject.keyses-abstractpositive0streams2serializationzodrecursiveESnextInt8ArraydebuggerESreact animationoptimizertypeerrorcommanderUint16Arrayless.jsdebugrequestdeep-cloneelectroncheckrmcreateECMAScript 2017channelgradients csskoreanequalcallmochagetPrototypeOfdescriptiongroupByspinneremitbindartRxJSlengtharraybuffervestloadingtrimRightRFC-6455extensionURLimmerlaunchwalkingrapidmomentcloneschemeSymbolperformantfunctionalappcss-in-jscssparentsjoiReactiveXeventDispatcherfull-widthshamregular expressionexecutabledeletetermtesternodefolderless cssecmascriptECMAScript 2021Uint8ClampedArraythroatstringifier$.extendnopearraysesstringxtermbootstrap cssassertionmetadatabcryptfind-upserializefastclonesymlinkloggerexeccorsRegExp.prototype.flagscompile lessHyBiprefixlinkconnectdropvaluejses-shimsdeepcloneES2021lookworkspace:*structuredClonewaitclientirqramdacollectionjsxinstallerbabel-coremobilevalidWeakSetsharedcodeslintsignalsmergecall-bindprotocol-bufferspuresetPrototypeOfECMAScript 2023tacitreadablereducertimeformattingdescriptortypeclassescontainsvalidategetopttypesduplexes5typeofdefinePropertywindowsperformancerequirecallboundutil.inspecttestingparenteslint-pluginsetImmediateboundlruutilitiesObjectjapanesees7awaitmapsettingsArray.prototype.flati18nmatchAllarrayfindpipekeyStreamqueueMicrotaskutilsoffsetpropertiesio-tspackagelinuxPromisetypanionencryptionponyfillRxreact poseES2016descriptorshooksreuseflattc39jsdiffieajaxfunctions_.extendflagsdataES8react-hooksdirdeterministictypedSetArray.prototype.findLastbrowserbundlingexpressionjson__proto__httpFloat64ArraychromeobjgetargstrimcmdECMAScript 2018protobuftoArraydependencieswatchingomit[[Prototype]]processgetterenvmime-dbInt32ArraykarmafetchdefaultnegativeArrayBufferdeepcopyjsdomstyleguidefromtelephoneapollocommand-lineprivate dataguidtoobjectconfigurabledomArray.prototype.filterform-validationcss nestingcharactersES2015pnpm9styleredux-toolkiteslintpluginprototypeauthES2018queueless compilerpostcsssideuninstalloutputlinewrappackage managerArray.prototype.flatMapchinesetoSortedvalueswritablelimitpropertynodejsoptionttyentriessortjsonschemaargvwatcherparsees-shim APIES5toolkitefficientstreamsgradients css3Float32Arrayratelimitwebassertcurriedcensorparsermruhigher-ordercirculardeepjwtArrayBuffer.prototype.slicemixinsspecmkdirptypescripthookformrangeerror@@toStringTagwatchfilterObject.iswalkxhrescapeenumerableECMAScript 2015ECMAScript 2019letapiString.prototype.trimfsnativechromiumcompilerregularairbnbintrinsictouchinvariantObservablesdotenvinternalimmutableObject.valuesfantasy-landwatchFile.envdeep-copyES2020inferenceeslintconfigglobspawnconsumereadArray.prototype.containsfindLastIndexxdg-openflatMapoperating-systemES2022defineresolvecore-jseventsfastcallbackes2018Uint8Arrayjson-schema-validationECMAScript 7tapvariables in cssastmatchesinterruptsmulti-packagereduceBigUint64Arraystyled-componentssigintCSSStyleDeclarationsymbolES2017whichkeysbatchtextlook-upbrowserslistclipyyamlmodulesnamefullgetOwnPropertyDescriptorutilityjestfixed-widthES7testObject.entriesexeides2016waapifast-deep-copysignalbundlerlogtypesafecolumnbrowserlistregular expressionsconsoleTypeBoxlastStyleSheetfast-deep-cloneiterationES3mimeslotredactjsonpathzerotoolsargumentisConcatSpreadabledirectoryECMAScript 2016lesscsshardlinksBigInt64Arrayeslintstylesheetreact-hook-formObject.definePropertyidledatastructureassertsconsturlsyamlECMAScript 6symbolssyntaxloggingscheme-validationcss lessremovethrottlemimetypesreduxdependency managertraverseframeworkcoercibleJSONStreamssigtermsymlinksshebanglibphonenumberfpshrinkwrapbootstrap lessyupes6streamprogressstarterES6Object.fromEntriesminimalcommandfigletPushcallbindcollection.es6shellthreeprettymatchgenericscolorcryptoTypeScriptsyntaxerrorSymbol.toStringTagprivatespinnersiteratedataviewhasOwnauthenticationfseventsMicrosoftplugines2015patchgraphqlharmonyYAMLasyncincludes3dfullwidtherrormiddlewareshimmovearktypeexpresswrapbyteLengthrmdirstylesrfc4122Object.assignavapopmotionsharedarraybufferpromise256schemaerror-handlingfastcopysortedopenvalidationjasminecss variableArray.prototype.flattenoptimistxssfile systemstatussanitizesuperagenteventEmitterstringifymakefastifycopychaiwordbreakinstallvisualconfigdom-testing-librarywarningobjectlazyspringWebSocketscomputed-typesuuidmonoreporandommoduletrimEndanimationsuperstructsometerminalnpmcjktaskcharacterjson-schemaforEachreadablestreames8Array.prototype.includesMapcorequotetranspilerreactwritepolyfillrobustObservableconcatMapgdprinternal slotequalitynested cssgesturesiteratornegative zerotsautoprefixerreal-timeeditorsliceflattenlimitedexit-codeTypedArrayclass-validatorwgetweakmapopensinspectdiffpostcss-pluginsetReflect.getPrototypeOfpicomatchString.prototype.matchAllfast-copytapesequencebannereast-asian-widthpromisesECMAScript 3bddstatelesssafecode pointsextraoncetypedarraysbytepropopenerfunctionviewflagpathxdgfile
1.0.0

17 days ago