mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): format astro with biome
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
* <!-- Always visible (no styles prop) -->
|
||||
* <StyleCase>Universal content</StyleCase>
|
||||
*/
|
||||
import type { AnySupportedStyle } from "@/types/docs";
|
||||
import type { AnySupportedStyle } from '@/types/docs';
|
||||
|
||||
interface Props {
|
||||
styles?: AnySupportedStyle[];
|
||||
styles?: AnySupportedStyle[];
|
||||
}
|
||||
|
||||
const { styles } = Astro.props;
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
---
|
||||
import type { HTMLTag, Polymorphic } from "astro/types";
|
||||
import { clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import type { HTMLTag, Polymorphic } from 'astro/types';
|
||||
import { clsx } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
type Props<Tag extends HTMLTag = "table"> = Polymorphic<{ as: Tag }> & {
|
||||
maxWidth?: boolean;
|
||||
class?: string;
|
||||
type Props<Tag extends HTMLTag = 'table'> = Polymorphic<{ as: Tag }> & {
|
||||
maxWidth?: boolean;
|
||||
class?: string;
|
||||
};
|
||||
|
||||
const {
|
||||
as: Tag = "table",
|
||||
maxWidth = true,
|
||||
class: className,
|
||||
...props
|
||||
} = Astro.props;
|
||||
const { as: Tag = 'table', maxWidth = true, class: className, ...props } = Astro.props;
|
||||
---
|
||||
|
||||
<div class={clsx("my-12", maxWidth && "mx-auto max-w-3xl")}>
|
||||
|
||||
Reference in New Issue
Block a user