Skip to content

fzx2666/lynx-examples

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lynx Examples

This repository is intended to showcase examples of Lynx.

List of examples

  • Tutorials
  • Builtin Elements
    • event: An example shows how touch events work
    • image: An example shows how to use images
    • list: An example shows how to use reusable and scrollable container
    • scroll-view: An example shows how to use scrollable container
    • text: An example shows how to use text and inline-text
    • view: An example shows how to use view
  • Styling
    • animation: Examples for using animation
    • css: Examples for using different CSS
    • layout: Examples of the layout related styling
  • API
    • fetch: An example shows how to use fetch API
    • lazy-bundle: An example shows how code-splitting and lazy bundle works
  • Web Platform
    • basic-usage: An example shows how to use Lynx Web Platform
  • UI Components
  • A11y
  • Performance APIs
  • I18n
    • i18n: An example shows how to use i18n in Lynx

How to use

  1. First, clone the current repository to your local:
git clone git@github.com:lynx-family/lynx-examples.git
  1. Then, choose the example you need, such as the image example:
cd examples/image
  1. Install the dependencies using pnpm or other package manager, then start the project:
# Use corepack to enable pnpm
corepack enable
pnpm i
pnpm run dev
  1. You can fork the current project or copy the code from the current project to use it.

How to use examples on the lynx-website

  1. Go to the project root directory on the lynx-website.

  2. Init Submodule or Update Submodule

git submodule update --init --recursive
  1. Use it in your MDX files:
import { LynxGoMark } from "@/components/lynxGo";

// path: The path is within the 'lynx-examples' folder, referring to the path of the file that needs to be displayed.
<LynxGoMark path="examples/event/src/App.tsx" lang="tsx" />;
  1. Update the LynxGoMark code:

just need to modify the 'path' of the LynxGoMark component.

About

๐Ÿš€ Comprehensive Lynx Examples

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 74.2%
  • SCSS 22.7%
  • JavaScript 3.0%
  • CSS 0.1%