forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e083dd
commit 354b77a
Showing
6 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "ToolbarLink", | ||
"description": "A link component.\nRenders a `<a>` element.", | ||
"props": { | ||
"className": { | ||
"type": "string | (state) => string", | ||
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state." | ||
}, | ||
"render": { | ||
"type": "React.ReactElement | (props, state) => React.ReactElement", | ||
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render." | ||
} | ||
}, | ||
"dataAttributes": {}, | ||
"cssVariables": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docs/src/app/(public)/(content)/react/components/toolbar/page.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Toolbar | ||
|
||
<Subtitle>A container for grouping a set of buttons and controls.</Subtitle> | ||
<Meta | ||
name="description" | ||
content="A high-quality, unstyled React toolbar component that grouping a set of buttons and controls." | ||
/> | ||
|
||
## API reference | ||
|
||
Import the component and assemble its parts: | ||
|
||
```jsx title="Anatomy" | ||
import { Toolbar } from '@base-ui-components/react/toolbar'; | ||
|
||
<Toolbar.Root> | ||
<Toolbar.Button /> | ||
<Toolbar.Link /> | ||
<Toolbar.Separator /> | ||
<Toolbar.Group> | ||
<Toolbar.Button /> | ||
<Toolbar.Button /> | ||
<Toolbar.Group /> | ||
</Toolbar.Root>; | ||
``` | ||
|
||
<Reference component="Toolbar" parts="Root, Button, Link, Group, Separator" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters