@apass/if-condition
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

If Condition ⁉️⁉️⁉️

If-Condition component

  import { If, Then, ElseIf, Else } from '@apass/if-condition'

Usage example

<If condition={true} />
  <Then>Then</Then>
  <ElseIf condition={true}>ElseIf</ElseIf>
  <Else>Else</Else>
</If>

// Or

<If condition={true}>
  Content
</If>

Readme

Keywords

none

Package Sidebar

Install

npm i @apass/if-condition

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

4.83 kB

Total Files

23

Last publish

Collaborators

  • paterm
  • vpilipenko