Skip to content

Commit

Permalink
eadme
Browse files Browse the repository at this point in the history
  • Loading branch information
zraly committed May 16, 2022
1 parent ac5c1db commit f5dcb03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ npm i mistral-ui

## Usage

### Basic HTML components
### Static HTML components

Just copy HTML example and modify as you need.
Just copy & paste into your HTML.

```html
<span class="text-neutral">badge</span>
```

### Alpine.js components
### Dynamic components using Alpine.js

Import component:
Import component into your man js file:

```javascript
import Alpine from 'alpinejs'
Expand All @@ -33,7 +33,7 @@ window.Alpine = Alpine
Alpine.start();
```

Apply `x-data` attribute on the element:
Copy & paste the HTML form the [component detail page](https:mistralui.com/component-multiselect):

```html
<select multiple x-data="multiselect">
Expand Down

0 comments on commit f5dcb03

Please sign in to comment.