mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
feat: add @aelis/components package with JRX definitions (#68)
JRX component wrappers for the aelis-client UI components, enabling server-side feed item rendering via json-render. Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
15
packages/aelis-components/src/button.ts
Normal file
15
packages/aelis-components/src/button.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { JrxNode } from "@nym.sh/jrx"
|
||||
|
||||
import { jsx } from "@nym.sh/jrx/jsx-runtime"
|
||||
|
||||
export type ButtonProps = {
|
||||
label: string
|
||||
leadingIcon?: string
|
||||
trailingIcon?: string
|
||||
style?: string
|
||||
children?: JrxNode | JrxNode[]
|
||||
}
|
||||
|
||||
export function Button(props: ButtonProps): JrxNode {
|
||||
return jsx("Button", props)
|
||||
}
|
||||
Reference in New Issue
Block a user