Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/element-plus-solidjs. element-plus-solidjs.vercel.app
Something went wrong. Try again.
12345678910import { createMemo } from 'solid-js'import { useGlobalConfig } from './use-global-config'import type { Accessor } from 'solid-js'import type { ComponentSize } from '../constants'
export const useSize = (size?: Accessor<ComponentSize | undefined>) => { const globalConfig = useGlobalConfig() return createMemo(() => size?.() || globalConfig?.().size)}