vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
59 lines (46 loc) • 1.03 kB
text/typescript
import defaultConfig from "./config.ts";
import type { RouteLocationRaw } from "vue-router";
import type { ComponentConfig } from "../types.ts";
export type Config = typeof defaultConfig;
export interface Props {
/**
* Page title.
*/
title?: string;
/**
* Page title size.
*/
titleSize?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
/**
* Set page description.
*/
description?: string;
/**
* Back link vue-router route object.
*/
backTo?: RouteLocationRaw;
/**
* Back link label.
*/
backLabel?: string;
/**
* Page variant.
*/
variant?: "solid" | "outlined" | "subtle" | "soft";
/**
* Page size (width).
*/
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "wide";
/**
* Show rounding block on the right side of the component.
*/
rounding?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}