benjamincanac / ui3 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nuxt/ui
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
Home Page: https://ui.nuxt.com
License: MIT License
This project forked from nuxt/ui
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
Home Page: https://ui.nuxt.com
License: MIT License
The useButtonGroup
composable need to be implemented in
This causes an error in the app.config.ts
when the selected color is missing.
https://github.com/benjamincanac/nuxt-ui3/blob/main/src/templates.ts#L81
Radix UI uses v-model:checked
for Switch
and Checkbox
components as opposed to modelValue
in v2
. Currently, the switch component uses checked
like radix, and the checkbox
component uses modelValue
like in the previous version.
We should commit to one behaviour to avoid confusion. I personally find using modelValue
simpler.
As of right now, the animations are defined inside the <style>
block of each component, it would be better to define them inside the @theme
when plugins are ready.
This is the goal of modules/dev
which call the builder:generateApp
hook but when re-running the add templates, the theme import is cached so it writes the same thing inside .nuxt/ui
: https://github.com/benjamincanac/nuxt-ui3/blob/main/src/templates.ts#L51.
The progress bar is hard-coded at the moment waiting on radix-vue/radix-vue#840.
When using the Accordion
, Breadcrumb
, DropdownMenu
, NavigationMenu
or Tabs
component, the slots from items
/links
should be displayed in the autocomplete.
This is the issue:
type SlotProps<T> = (props: { item: T, index: number }) => any
export type Slots<T> = {
default: SlotProps<T>
} & {
[key in T['slot'] as string]?: SlotProps<T>
}
loading
prop disable the button for now, we need to ensure this won't close the Dropdown
.
Reference: nuxt#1242
Need to be fixed in Tailwind CSS v4.
Size
Color
There is currently an issue that prevents from defining types with an interface: vuejs/core#8457
interface NavigationMenuEmits<T extends NavigationMenuLink> extends NavigationMenuRootEmits {
select: [event: Event, link: T]
}
const emits = defineEmits<NavigationMenuEmits<T>>()
<NavigationMenuLink @select="emits('select', $event, link)">
In this version, we're only using nuxt-icon
module but this create a blink on first load.
Reference: nuxt#1188
No need to do a URadio
I guess?
Useful for NuxtImg
Should we also consider description
?
This will use the Label
component from radix-vue
underneath.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.