You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/src/uix/morfo/components/stack.ts

31 lines
817 B

import type { Morfo } from '../types';
/**
* Stack — direction-controlled flex stack (layout primitive).
*
* Eidos-native: a thin specialization of `<Flex>` that defaults
* `direction` to `column` and routes `gap`/`align`/`justify` through the
* Flex container channel. The provider is a single `<div data-box
* data-flex data-stack>` shell — Stack composes through `<Flex>`.
*
* No semantic events — Stack is a passive container that arranges its
* children. See `box.ts` for the same 0-event justification.
*/
export const stackMorfo = {
name: 'Stack',
kebab: 'stack',
scope: ['eidos'],
parts: [
{
name: 'Provider',
kebab: 'provider',
archetype: 'provider',
kind: 'public',
defaultElement: 'div',
optional: false,
data: [],
aria: []
}
]
} as const satisfies Morfo;

Powered by TurnKey Linux.