-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #906 from DNNCommunity/release/0.23.1
Released v0.23.1
- Loading branch information
Showing
3 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# `dnn-elements` | ||
This is a collection of pure web components (custom elements) for use within DNN Platform or custom extensions for DNN. These can even be used in projects outside of the DNN purview, though some are unique for the DNN experience. The web components in `dnn-elements` are framework agnostic. For framework specific web components (e.g., React), you can use `dnn-elements-<framework>` (currently `dnn-element-react` is the only framework specific version, but there are plans to support Angular soon). | ||
|
||
## Usage | ||
### npm | ||
`npm install @dnncommunity/dnn-elements` | ||
|
||
### yarn | ||
`yarn add @dnncommunity/dnn-elements` | ||
|
||
``` | ||
// my-component.tsx | ||
import '@dnncommunity/dnn-elements'; | ||
render() { | ||
return ( | ||
<Host> | ||
<dnn-button type="secondary">Secondary Button</dnn-button> | ||
</Host> | ||
); | ||
} | ||
``` |