mi-proyecto-ramon-comp
v1.1.7
Published
`<custom-button> <custom-input> <search-bar>` is a [HTML custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of ...
Downloads
23
Readme
Custom Component for react
<custom-button> <custom-input> <search-bar>
is a HTML custom elements for the purpose of ...
$ npm i mi-proyecto-ramon-comp
Installing as a direct, dev or peer dependency is up to the user installing the package. If you are unsure as to what type of dependency you should use, consider reading this stack overflow answer.
Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.
Define dependency in project component
Defining the components dependency within each component that is using the <custom-button> <custom-input> <search-bar>
components.
import 'mi-proyecto-ramon-comp/src/custom-input';
import 'mi-proyecto-ramon-comp/src/custom-button';
import 'mi-proyecto-ramon-comp/src/search-bar';
Reference component in HTML
<custom-button buttonType="primary-small" title="small"></custom-button>
<custom-input placeholder="Speak now" type="text" buttonType="primary"
>🔍</custom-input
>
<search-bar>🔍</search-bar>
Install bundled assets from CDN
This is a package that provides a input elements and button that could be reuse in a react js project
NOTE: Be sure to replace @latest
in the URL with the version of the asset you want. @latest is NOT aware of any MAJOR releases, use at your own risk.
API Code Examples
Default auro-datetime
<custom-button buttonType="primary-small" title="small"></custom-button>
<custom-input placeholder="Speak now" type="text" buttonType="primary"
>🔍</custom-input
>
<search-bar>🔍</search-bar>
<custom-input
placeholder="Custom Styles border"
type="text"
buttonType="primary"
label="This is the label"
>🔍</custom-input
>
Start development environment
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open two different bash sessions. One is for the polymer server, the second is to run the build.
// bash run LitElements Project
$ polymer serve
// bash build
$ npm run serve
Open localhost:8081
Demo deployment
To deploy a demo version of the component for review, run npm run build
to create a ./build
directory that can be pushed to any static server.