@eslamdevui/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
65 lines (64 loc) • 2.04 kB
TypeScript
import theme from '#build/ui/page-section';
import type { AppConfig } from '@nuxt/schema';
import type { ButtonProps, ComponentConfig, PageFeatureProps } from '../types';
type PageSection = ComponentConfig<typeof theme, AppConfig, 'pageSection'>;
export interface PageSectionProps {
/**
* The element or component this component should render as.
* @defaultValue 'section'
*/
as?: any;
/**
* The headline displayed above the title.
*/
headline?: string;
/**
* The icon displayed above the title.
* @IconifyIcon
*/
icon?: string;
title?: string;
description?: string;
/**
* Display a list of Button under the description.
* `{ size: 'lg' }`{lang="ts-type"}
*/
links?: ButtonProps[];
/**
* Display a list of PageFeature under the description.
*/
features?: PageFeatureProps[];
/**
* The orientation of the section.
* @defaultValue 'vertical'
*/
orientation?: PageSection['variants']['orientation'];
/**
* Reverse the order of the default slot.
* @defaultValue false
*/
reverse?: boolean;
class?: any;
ui?: PageSection['slots'];
}
export interface PageSectionSlots {
default(props?: {}): any;
top(props?: {}): any;
bottom(props?: {}): any;
headline(props?: {}): any;
leading(props?: {}): any;
title(props?: {}): any;
description(props?: {}): any;
links(props?: {}): any;
features(props?: {}): any;
}
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageSectionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageSectionProps> & Readonly<{}>, {
as: any;
orientation: PageSection["variants"]["orientation"];
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageSectionSlots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};